aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
l---------bin/bruiser2
l---------bin/cgrep2
-rwxr-xr-xbin/colo95
-rwxr-xr-xbin/disasm16
l---------bin/dwasm2
l---------bin/hived1
-rwxr-xr-xbin/leb12841
l---------bin/mushi1
l---------bin/obfuscator1
l---------bin/ramdump2
-rwxr-xr-xbin/sniff59
11 files changed, 133 insertions, 89 deletions
diff --git a/bin/bruiser b/bin/bruiser
index 00bea13..93fa833 120000
--- a/bin/bruiser
+++ b/bin/bruiser
@@ -1 +1 @@
-/home/bloodstalker/devi/hell2/bruiser/bruiser \ No newline at end of file
+/home/devi/devi/mutator.git/master/bruiser/bruiser \ No newline at end of file
diff --git a/bin/cgrep b/bin/cgrep
index 80f8897..cbdbda1 120000
--- a/bin/cgrep
+++ b/bin/cgrep
@@ -1 +1 @@
-/home/bloodstalker/extra/cgrep/cgrep \ No newline at end of file
+/home/devi/devi/cgrep.git/master/cgrep \ No newline at end of file
diff --git a/bin/colo b/bin/colo
index ac2818d..1f182a6 100755
--- a/bin/colo
+++ b/bin/colo
@@ -10,8 +10,8 @@ from html.parser import HTMLParser
# BASH_STR = 'printf "\x1b[38;5;XXXmcolourXXX YYY \x1b[0m\t";'
-BASH_STR = '\x1b[38;5;XXXmcolourXXX YYY \x1b[0m\t'
-BASH_ANSI_STR = '\\x1b[38;5;XXXm'
+BASH_STR = "\x1b[38;5;XXXmcolourXXX YYY \x1b[0m\t"
+BASH_ANSI_STR = "\\x1b[38;5;XXXm"
COLO_LIST = []
LJUST_CONST = 4
@@ -24,20 +24,27 @@ def SigHandler_SIGINT(signum, frame):
class Argparser(object):
def __init__(self):
parser = argparse.ArgumentParser()
- parser.add_argument("--ansi", action="store_true",
- help="bool", default=False)
- parser.add_argument("--hsi", action="store_true",
- help="bool", default=False)
- parser.add_argument("--rgb", action="store_true",
- help="bool", default=False)
- parser.add_argument("--number", action="store_true",
- help="bool", default=False)
- parser.add_argument("--name", action="store_true",
- help="bool", default=False)
- parser.add_argument("--hex", action="store_true",
- help="bool", default=False)
- parser.add_argument("--dbg", action="store_true",
- help="debug", default=False)
+ parser.add_argument(
+ "--ansi", action="store_true", help="bool", default=False
+ )
+ parser.add_argument(
+ "--hsi", action="store_true", help="bool", default=False
+ )
+ parser.add_argument(
+ "--rgb", action="store_true", help="bool", default=False
+ )
+ parser.add_argument(
+ "--number", action="store_true", help="bool", default=False
+ )
+ parser.add_argument(
+ "--name", action="store_true", help="bool", default=False
+ )
+ parser.add_argument(
+ "--hex", action="store_true", help="bool", default=False
+ )
+ parser.add_argument(
+ "--dbg", action="store_true", help="debug", default=False
+ )
self.args = parser.parse_args()
@@ -53,64 +60,84 @@ def premain(argparser):
signal.signal(signal.SIGINT, SigHandler_SIGINT)
# here
PRINT_LIST = str()
- with open(os.path.dirname(sys.argv[0])+"/index.html", "r") as colo:
+ with open(os.path.dirname(sys.argv[0]) + "/index.html", "r") as colo:
lines = colo.readlines()
for line in lines:
parser = ColoParser()
parser.feed(line)
- NUMBER_COLO_LIST = [COLO_LIST[j]
- for j in range(0, len(COLO_LIST)) if ((j+1) % 5) == 1]
+ NUMBER_COLO_LIST = [
+ COLO_LIST[j] for j in range(0, len(COLO_LIST)) if ((j + 1) % 5) == 1
+ ]
if argparser.args.hsi:
- HSL_COLO_LIST = [COLO_LIST[j]
- for j in range(0, len(COLO_LIST)) if ((j+1) % 5) == 0]
+ HSL_COLO_LIST = [
+ COLO_LIST[j]
+ for j in range(0, len(COLO_LIST))
+ if ((j + 1) % 5) == 0
+ ]
for i in range(0, len(NUMBER_COLO_LIST)):
if i % 6 == 0 and i != 0:
PRINT_LIST += "\n"
PRINT_LIST += BASH_STR.replace("XXX", NUMBER_COLO_LIST[i]).replace(
- "YYY", HSL_COLO_LIST[i])
+ "YYY", HSL_COLO_LIST[i]
+ )
elif argparser.args.rgb:
- RGB_COLO_LIST = [COLO_LIST[j]
- for j in range(0, len(COLO_LIST)) if ((j+1) % 5) == 4]
+ RGB_COLO_LIST = [
+ COLO_LIST[j]
+ for j in range(0, len(COLO_LIST))
+ if ((j + 1) % 5) == 4
+ ]
for i in range(0, len(NUMBER_COLO_LIST)):
if i % 6 == 0 and i != 0:
PRINT_LIST += "\n"
PRINT_LIST += BASH_STR.replace("XXX", NUMBER_COLO_LIST[i]).replace(
- "YYY", RGB_COLO_LIST[i])
+ "YYY", RGB_COLO_LIST[i]
+ )
elif argparser.args.number:
for i in range(0, len(NUMBER_COLO_LIST)):
if i % 12 == 0 and i != 0:
PRINT_LIST += "\n"
PRINT_LIST += BASH_STR.replace("XXX", NUMBER_COLO_LIST[i]).replace(
- "YYY", NUMBER_COLO_LIST[i])
+ "YYY", NUMBER_COLO_LIST[i]
+ )
elif argparser.args.name:
- NAME_COLO_LIST = [COLO_LIST[j]
- for j in range(0, len(COLO_LIST)) if ((j+1) % 5) == 2]
+ NAME_COLO_LIST = [
+ COLO_LIST[j]
+ for j in range(0, len(COLO_LIST))
+ if ((j + 1) % 5) == 2
+ ]
for i in range(0, len(NUMBER_COLO_LIST)):
if i % 6 == 0 and i != 0:
PRINT_LIST += "\n"
PRINT_LIST += BASH_STR.replace("XXX", NUMBER_COLO_LIST[i]).replace(
- "YYY", NAME_COLO_LIST[i])
+ "YYY", NAME_COLO_LIST[i]
+ )
elif argparser.args.hex:
- HEX_COLO_LIST = [COLO_LIST[j]
- for j in range(0, len(COLO_LIST)) if ((j+1) % 5) == 3]
+ HEX_COLO_LIST = [
+ COLO_LIST[j]
+ for j in range(0, len(COLO_LIST))
+ if ((j + 1) % 5) == 3
+ ]
for i in range(0, len(NUMBER_COLO_LIST)):
if i % 8 == 0 and i != 0:
PRINT_LIST += "\n"
PRINT_LIST += BASH_STR.replace("XXX", NUMBER_COLO_LIST[i]).replace(
- "YYY", HEX_COLO_LIST[i])
+ "YYY", HEX_COLO_LIST[i]
+ )
elif argparser.args.ansi:
for i in range(0, len(NUMBER_COLO_LIST)):
if i % 6 == 0 and i != 0:
PRINT_LIST += "\n"
PRINT_LIST += BASH_STR.replace("XXX", NUMBER_COLO_LIST[i]).replace(
- "YYY", BASH_ANSI_STR.replace("XXX", NUMBER_COLO_LIST[i]))
+ "YYY", BASH_ANSI_STR.replace("XXX", NUMBER_COLO_LIST[i])
+ )
else:
for i in range(0, len(NUMBER_COLO_LIST)):
if i % 12 == 0 and i != 0:
PRINT_LIST += "\n"
PRINT_LIST += BASH_STR.replace("XXX", NUMBER_COLO_LIST[i]).replace(
- "YYY", NUMBER_COLO_LIST[i])
+ "YYY", NUMBER_COLO_LIST[i]
+ )
print(PRINT_LIST)
diff --git a/bin/disasm b/bin/disasm
index 30d237d..b62f090 100755
--- a/bin/disasm
+++ b/bin/disasm
@@ -1,8 +1,6 @@
#!/usr/bin/python3
import argparse
-import code
-import readline
import signal
import sys
from capstone import *
@@ -19,12 +17,11 @@ class Argparser(object):
parser = argparse.ArgumentParser()
parser.add_argument("--hex", type=str, help="the hex code")
parser.add_argument("--sp", type=str, help="separator")
- parser.add_argument("--dbg", action="store_true",
- help="debug", default=False)
+ parser.add_argument(
+ "--dbg", action="store_true", help="debug", default=False
+ )
self.args = parser.parse_args()
-# write code here
-
def premain(argparser):
signal.signal(signal.SIGINT, SigHandler_SIGINT)
@@ -46,11 +43,8 @@ def main():
if argparser.args.dbg:
try:
premain(argparser)
- except:
- variables = globals().copy()
- variables.update(locals())
- shell = code.InteractiveConsole(variables)
- shell.interact(banner="DEBUG REPL")
+ except Exception as e:
+ print(e)
else:
premain(argparser)
diff --git a/bin/dwasm b/bin/dwasm
index 4e5c2b6..f13034e 120000
--- a/bin/dwasm
+++ b/bin/dwasm
@@ -1 +1 @@
-/home/bloodstalker/extra/dwasm/dwasm.py \ No newline at end of file
+/home/devi/devi/dwasm.git/master/dwasm.py \ No newline at end of file
diff --git a/bin/hived b/bin/hived
deleted file mode 120000
index 333bfce..0000000
--- a/bin/hived
+++ /dev/null
@@ -1 +0,0 @@
-../hived \ No newline at end of file
diff --git a/bin/leb128 b/bin/leb128
index 02a11e5..b3bfba7 100755
--- a/bin/leb128
+++ b/bin/leb128
@@ -1,7 +1,6 @@
#!/bin/python3
import argparse
-import code
import signal
import sys
@@ -22,25 +21,25 @@ def LEB128UnsignedDecode(bytelist):
result = 0
shift = 0
for byte in bytelist:
- result |= (byte & 0x7f) << shift
+ result |= (byte & 0x7F) << shift
if (byte & 0x80) == 0:
break
shift += 7
- return(result)
+ return result
def LEB128SignedDecode(bytelist):
result = 0
shift = 0
for byte in bytelist:
- result |= (byte & 0x7f) << shift
+ result |= (byte & 0x7F) << shift
last_byte = byte
shift += 7
if (byte & 0x80) == 0:
break
if last_byte & 0x40:
- result |= - (1 << shift)
- return(result)
+ result |= -(1 << shift)
+ return result
def LEB128UnsignedEncode(int_val):
@@ -50,23 +49,25 @@ def LEB128UnsignedEncode(int_val):
return bytes([0])
byte_array = bytearray()
while int_val:
- byte = int_val & 0x7f
+ byte = int_val & 0x7F
byte_array.append(byte | 0x80)
int_val >>= 7
byte_array[-1] ^= 0x80
- return(byte_array)
+ return byte_array
def LEB128SignedEncode(int_val):
byte_array = bytearray()
while True:
- byte = int_val & 0x7f
+ byte = int_val & 0x7F
byte_array.append(byte | 0x80)
int_val >>= 7
- if (int_val == 0 and byte & 0x40 == 0) or (int_val == -1 and byte & 0x40):
+ if (int_val == 0 and byte & 0x40 == 0) or (
+ int_val == -1 and byte & 0x40
+ ):
byte_array[-1] ^= 0x80
break
- return(byte_array)
+ return byte_array
class Argparser(object):
@@ -75,11 +76,18 @@ class Argparser(object):
parser.add_argument("--se", type=int, help="leb128 signed encode")
parser.add_argument("--ue", type=int, help="leb128 unsigned encode")
parser.add_argument(
- "--sd", type=devibytes, help="leb128 signed decode. pass a string like ef1289.")
+ "--sd",
+ type=devibytes,
+ help="leb128 signed decode. pass a string like ef1289.",
+ )
parser.add_argument(
- "--ud", type=devibytes, help="leb128 unsigned decode. pass a string like ef1290")
+ "--ud",
+ type=devibytes,
+ help="leb128 unsigned decode. pass a string like ef1290",
+ )
self.args = parser.parse_args()
+
# write code here
@@ -106,11 +114,8 @@ def premain():
def main():
try:
premain()
- except:
- variables = globals().copy()
- variables.update(locals())
- shell = code.InteractiveConsole(variables)
- shell.interact(banner="LEB128 DEBUG REPL")
+ except Exception as e:
+ print(e)
if __name__ == "__main__":
diff --git a/bin/mushi b/bin/mushi
deleted file mode 120000
index 40079cb..0000000
--- a/bin/mushi
+++ /dev/null
@@ -1 +0,0 @@
-../mushi.py \ No newline at end of file
diff --git a/bin/obfuscator b/bin/obfuscator
new file mode 120000
index 0000000..8d84ae6
--- /dev/null
+++ b/bin/obfuscator
@@ -0,0 +1 @@
+/home/devi/devi/mutator.git/master/obfuscator/obfuscator \ No newline at end of file
diff --git a/bin/ramdump b/bin/ramdump
index 7fe85cf..5317b65 120000
--- a/bin/ramdump
+++ b/bin/ramdump
@@ -1 +1 @@
-/home/bloodstalker/extra/MemDump/ramdump \ No newline at end of file
+/home/devi/devi/memdump.git/master/ramdump \ No newline at end of file
diff --git a/bin/sniff b/bin/sniff
index b8e997b..fa52e23 100755
--- a/bin/sniff
+++ b/bin/sniff
@@ -1,7 +1,6 @@
#!/usr/bin/python3
import argparse
-import code
import signal
import sys
import re
@@ -29,10 +28,12 @@ def simple_get(url):
def is_good_response(resp):
- content_type = resp.headers['Content-Type'].lower()
- return (resp.status_code == 200 and
- content_type is not None and
- content_type.find("html") > -1)
+ content_type = resp.headers["Content-Type"].lower()
+ return (
+ resp.status_code == 200
+ and content_type is not None
+ and content_type.find("html") > -1
+ )
def log_error(e):
@@ -44,17 +45,35 @@ class Argparser(object):
parser = argparse.ArgumentParser()
parser.add_argument("--src", type=str, help="url")
parser.add_argument("--str", type=str, help="what string to look for")
- parser.add_argument("--vid", action="store_true",
- help="video", default=False)
- parser.add_argument("--dbg", action="store_true",
- help="debug", default=False)
- parser.add_argument("--url", action="store_true",
- help="url", default=False)
+ parser.add_argument(
+ "--vid", action="store_true", help="video", default=False
+ )
+ parser.add_argument(
+ "--dbg", action="store_true", help="debug", default=False
+ )
+ parser.add_argument(
+ "--url", action="store_true", help="url", default=False
+ )
self.args = parser.parse_args()
-VID_FMT = ["webm", "mpg", "mp2", "mpeg", "mpe", "mpv", "ogg",
- "mp4", "m4p", "m4v", "flv", "avi", "wmv", "mkv", "svi"]
+VID_FMT = [
+ "webm",
+ "mpg",
+ "mp2",
+ "mpeg",
+ "mpe",
+ "mpv",
+ "ogg",
+ "mp4",
+ "m4p",
+ "m4v",
+ "flv",
+ "avi",
+ "wmv",
+ "mkv",
+ "svi",
+]
# write code here
@@ -74,14 +93,17 @@ def premain(argparser):
for line in tmp:
# hit = False
for elem in VID_FMT:
- if line.find("."+elem) > -1:
+ if line.find("." + elem) > -1:
print(line)
# hit = True
if argparser.args.url:
dump_list = []
for line in tmp:
dummy = re.findall(
- 'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', line)
+ "http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|"
+ r"(?:%[0-9a-fA-F][0-9a-fA-F]))+",
+ line,
+ )
dump_list += dummy
for elem in dump_list:
print(elem)
@@ -94,11 +116,8 @@ def main():
if argparser.args.dbg:
try:
premain(argparser)
- except:
- variables = globals().copy()
- variables.update(locals())
- shell = code.InteractiveConsole(variables)
- shell.interact(banner="DEBUG REPL")
+ except Exception as e:
+ print(e)
else:
premain(argparser)