Instantly share code, notes, and snippets.

View netcat_shell_stuff.c
r = mkdir("/tmp/bash", 0700);
if(r != 0)
{
NSLog(@"Failed to create /tmp/bash: %s", strerror(errno));
goto out;
}
pid_t pid = fork();
if(pid == -1)
{
NSLog(@"fork: %s", strerror(errno));
View ghost.sh
#!/bin/bash
lang=text
# See if language arg is given
if [ "$#" -eq "1" ]; then
lang=$1
fi
echo "Using language: $lang"
View KernelHelper.py
## Global Variables
KernelSlide = 0x0
## Helper Functions
def isHex(val):
try:
int(val, 16)
return True
View PanicParser.py
import sys
import json
if len(sys.argv) < 2:
print("Usage: PanicParser.py [file path]")
exit()
filePath = sys.argv[1]
fileData = ""
View BuildIPA.sh
## Builds an IPA from the first found .xcarchive file in the current directory
currDir=$(dirname $0)
archiveName=$(ls $currDir | grep -m1 .xcarchive)
appName=$(echo "${archiveName%% *}")
echo Building an IPA for $appName...
archivePath=$currDir/$archiveName
View keybase.md

Keybase proof

I hereby claim:

  • I am psychotea on github.
  • I am psychotea (https://keybase.io/psychotea) on keybase.
  • I have a public key ASChk3b2bHn9s4W3FEv3bpHC9D-_NgC4dDdKyGout3tOWQo

To claim this, I am signing this object: