Skip to content

Instantly share code, notes, and snippets.

View M0NsTeRRR's full-sized avatar

Ludovic Ortega M0NsTeRRR

View GitHub Profile
@M0NsTeRRR
M0NsTeRRR / GetPlayersBansSteam.php
Last active March 21, 2021 10:19
Get players bans on steam from steamID32, SteamID64 or Steam custom URL with steam API
<?php
// PHP >= 7
// You must add and enable CURL on your webserver
/**
* GET_SteamAPI
*
* @param string $endpoint http endpoint of Steam API
* @param string $steam_api_key your Steam API key
modules:
# Default IF-MIB interfaces table with ifIndex.
if_mib:
walk:
- 1.3.6.1.2.1.1.3 # sysUpTime
- 1.3.6.1.2.1.2 # interfaces
- 1.3.6.1.2.1.31.1.1 # ifXTable
lookups:
- source_indexes: [ifIndex]
lookup: ifAlias
<?xml version="1.0" encoding="UTF-16" standalone="no"?>
<HardwareHealth>
<host HealthState="0" moid="host-17" name="server3.unicornafk.fr">
<group HealthState="5" name="Battery">
<CIM_NumericSensor key="0.7.1.101">
# pyvmomi is required
# pip install pyvmomi
from pyVim.connect import SmartConnectNoSSL, Disconnect
import ssl
s = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
s.verify_mode = ssl.CERT_NONE
c = SmartConnectNoSSL(host='vcenter.homelab.lan.fr', user='root', pwd='password')