Skip to content

Instantly share code, notes, and snippets.

View watcher_script.py
import time
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
EXCLUDES = ['/dev']
class Watcher:
DIRECTORY_TO_WATCH = "/"
def __init__(self):
View 24.py
#!/usr/bin/python
import os
import time
while 1:
time.sleep(0.2)
result = os.popen('netstat -tuna | grep :80 | grep SYN_RECV').read().rsplit('\n')
try:
flag = False
@Ali-Razmjoo
Ali-Razmjoo / commands.py
Created Jan 22, 2016
Add new command to OWASP ZSC Project
View commands.py
commands = { #commands section
'shellcode' : #shellcode main command
['generate shellcode',
{ 'generate': #shellcode sub command - to generate
{
'linux_x86' : #generate sub command - os name
{
'chmod' : {'file_to_perm&&perm_number':['none','xor_random','xor_yourvalue','add_random','add_yourvalue','sub_random','sub_yourvalue','inc','inc_timesyouwant','dec','dec_timesyouwant','mix_all']}, #function of shellcode
'dir_create' : {'directory_to_create':['none','xor_random','xor_yourvalue','add_random','add_yourvalue','sub_random','sub_yourvalue','inc','inc_timesyouwant','dec','dec_timesyouwant','mix_all']}, #function of shellcode
'download' : {'download_url':['none','xor_random','xor_yourvalue','add_random','add_yourvalue','sub_random','sub_yourvalue','inc','inc_timesyouwant','dec','dec_timesyouwant','mix_all']}, #function of shellcode
@Ali-Razmjoo
Ali-Razmjoo / file.py
Last active Jan 20, 2016
python thread error - 845 threads
View file.py
part of file:
with ThreadPoolExecutor(max_workers = thread_connection) as executor:
for port in ports:
executor.submit(ping, host, port, available_ports)
D:\some_folder_name\simplecode>simplecode.py
Calculating IPs, Please Wait ...