This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime_plugin, sublime, json, webbrowser | |
import re, os | |
from time import time | |
settings = {} | |
class IntellitipCommand(sublime_plugin.EventListener): | |
cache = {} | |
region_row = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function id_to_str(identifier, inline = false, comment = false) { | |
let result = "ID: " + identifier.toString(); | |
if (comment) { | |
result = "<!--" + result + "-->"; | |
} | |
if (inline) { | |
result += " "; | |
} | |
else { | |
result += "\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### | |
# Easily decompile `.pyc` and `.py` files for the latest python version. | |
# Basic structure taken from https://nedbatchelder.com/blog/200804/the_structure_of_pyc_files.html, fully updated and added functionality. | |
# Added complete disassembly: offsets, opcodes, opnames... | |
#### | |
import dis, marshal, struct, sys, time, types, py_compile | |
def to_int(bytes): | |
return struct.unpack("i",bytes)[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a shellcode.ASM file | |
# the shellcode shall reside in the text segment | |
# compile it using ml64 /c shellcode.ASM | |
# run this file | |
f = open("shellcode.obj", "rb") | |
stream = f.read() | |
SizeOfFileHeader = 0x14 | |
SizeOfBuffer = int.from_bytes(stream[SizeOfFileHeader+0x10:SizeOfFileHeader+0x14], "little") #SizeOfRaw Text segment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#usage python FindPattern.py sequence pattern | |
import sys | |
def str_to_bytes(_bytes): | |
current = "" | |
sequence = bytearray() | |
for ltr in _bytes: | |
for i in range(2): | |
current += ltr | |
sequence.append(int(current, 16)) |