Skip to content

Instantly share code, notes, and snippets.

View Ra1d7's full-sized avatar
🛌
Focusing

Moath Altarawneh Ra1d7

🛌
Focusing
View GitHub Profile
@Ra1d7
Ra1d7 / server.py
Created September 25, 2019 14:29
This is the server you're supposed to run for the "chat app", then run client.py
import socket
import multiprocessing
import threading
import time
class server:
def setup(self):
print('Setting Up Server..')
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.bind((socket.gethostname(),1234))
print('[+] Server Setup and Listening [+]')
@Ra1d7
Ra1d7 / client.py
Created September 25, 2019 14:28
The Client for the "chat app" , you run the server first then this (this is only a concept not even close to what work is needed for a real chat app)
import socket
import threading
s= socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect((socket.gethostname(),1234))
def send():
global s
while True:
s.send(bytes(
@Ra1d7
Ra1d7 / LolSorter.py
Created September 18, 2019 22:10
League Sorter For LolSamurai config
path = ''
import requests
from bs4 import BeautifulSoup
def dothisshit():
global path
try:
f = open(path)
print('\033[31m\033[1mFile Opened..\033[0m\n')
for line in f.readlines():
secs = line.split('|')
@Ra1d7
Ra1d7 / checksum.py
Last active September 16, 2019 16:36
Calculates the checksum of a file or all files in a folder (you can edit the algorithm used easily by replacing each hashlib.sha256 with whatever algorithm you like)
import hashlib
import os
while True:
s = hashlib.sha256()
path = r'{}'.format(input('Path to file or Folder: \033[7m'))
print('\033[0m')
try:
with open(path, "rb") as f:
for chunk in iter(lambda: f.read(4096), b""):
s.update(chunk)
@Ra1d7
Ra1d7 / SimpleEncryption.py
Last active September 15, 2019 03:47
Simple Encryption and Decryption Using a dictionary and keys
chars = {
'!':-15,
'"':-14,
'=':-13,
'+':-12,
'-':-11,
'*':-10,
'#':-9,
'$':-8,
'%':-7,
@Ra1d7
Ra1d7 / ShortenUrl.py
Created August 28, 2019 19:48
Shorten URL or a file with URLS
import requests
import os
def clearscreen():
print('\n'*50)
links = []
print('''==== Welcome To ezme.ir URL shortener ====
========= Coded By: Raid7 =========
''')
fileorurl = input('(F)ile or (U)rl?: ').lower()
ProcessThis = input('File or URL to shorten: ')
@Ra1d7
Ra1d7 / fbmkr.py
Created August 28, 2019 18:49
Facebook Mass Account Maker
import mechanize
import requests
import re
import logging
import argparse
import sys
reload(sys)
sys.setdefaultencoding('utf8')
words = input('String to reverse: ').split(' ')
reverselist = []
reversestring=''
numofwords = len(words)-1
for x in range(0,numofwords):
reverselist.append(words[numofwords-x])
reverselist.append(words[0])
for item in reverselist:
reversestring += ' ' + item
print(reversestring)
import random
long = input('Please enter how long you want your password to be :')
withsym = input('Do you want symbols in your password?(Y/N): ')
passwd = []
passe=''
def dorand():
global passwd
if withsym.lower() == 'y':
type = random.randint(0, 3)
import random
long = input('Please enter how long you want your password to be :')
withsym = input('Do you want symbols in your password?(Y/N): ')
passwd = []
passe=''
def dorand():
global passwd
if withsym.lower() == 'y':
type = random.randint(0, 3)