Skip to content

Instantly share code, notes, and snippets.

@Ali-Razmjoo
Ali-Razmjoo / file.py
Last active January 20, 2016 11:43
python thread error - 845 threads
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 ...
@Ali-Razmjoo
Ali-Razmjoo / commands.py
Created January 22, 2016 13:44
Add new command to OWASP ZSC Project
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
#!/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
import time
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
EXCLUDES = ['/dev']
class Watcher:
DIRECTORY_TO_WATCH = "/"
def __init__(self):
{
"api": {
"services": [
"HandlerService",
"StatsService"
],
"tag": "api"
},
"dns": null,
"fakeDns": null,
#!/usr/bin/bash
# Set DEBIAN_FRONTEND to noninteractive for fast the default configuration during installation
export DEBIAN_FRONTEND=noninteractive
# updating OS Packages
apt-get update
apt-get upgrade -y
# Installing required packages
@Ali-Razmjoo
Ali-Razmjoo / secologist_v2ray_installer.sh
Last active December 15, 2023 02:11
This script will download latest stable version of V2Ray and install/extract it in /usr/bin https://www.secologist.com/anonymous-v2ray-vpn
#!/usr/bin/bash
# Set DEBIAN_FRONTEND to noninteractive for fast the default configuration during installation
export DEBIAN_FRONTEND=noninteractive
# updating OS Packages
apt-get update
apt-get upgrade -y
# Installing required packages
@Ali-Razmjoo
Ali-Razmjoo / secologist-v2ray-config.json
Last active December 15, 2023 02:11
This configuration is not using TLS/SSL. "path" is set to "/secologist", replace the default users! https://www.secologist.com/anonymous-v2ray-vpn
{
"api":{
"services":[
"HandlerService",
"StatsService"
],
"tag":"api"
},
"dns":null,
"fakeDns":null,
#!/usr/bin/bash
# Set DEBIAN_FRONTEND to noninteractive for fast the default configuration during installation
export DEBIAN_FRONTEND=noninteractive
# updating OS Packages
apt-get update
apt-get upgrade -y
# Installing required packages
@Ali-Razmjoo
Ali-Razmjoo / haproxy.cfg
Created April 2, 2024 16:47
Secologist V2Ray HAProxy & Nginx Configuration Examples: https://www.secologist.com/anonymous-v2ray-vpn
global
log stdout format raw local0
maxconn 10000
tune.bufsize 32768
tune.maxrewrite 1024
tune.ssl.default-dh-param 2048
defaults
log global
mode http