Skip to content

Instantly share code, notes, and snippets.

serial='76876-77776'
for i in range(ord('a'),ord('z')+1):
for j in range(ord('a'),ord('z')+1):
v6=i
v8=j
v7 = (v6 & 1) + 5
v48 = ((v6 >> 4) & 1) + 5
v42 = ((v6 >> 1) & 1) + 5
string v50
string v51
string v52
int v1 = 0
GetWindowText(Input_Name, v50)
if(len(v50) == 4):
int v3 = 0
while(v50[v3] >= 'a' and v50[v3] <= 'z'): #Check if input is lowercase
if(++v3 >= 4):
from capstone import *
data = open('flag.exe', 'rb').read()
md = Cs(CS_ARCH_X86, CS_MODE_64)
with open('asm.txt', 'w') as f:
for i in md.disasm(data[0x914:0x85fd], 0x00401514): #Capstone read from data address, not the virtual address
f.write("0x%x:\t%s\t%s\n" %(i.address, i.mnemonic, i.op_str))
f.close()
byte = []
key = []
from pwn import *
data = open('ch30.bin', 'rb').read()
with open('asm.txt', 'w') as f:
f.write(disasm(data[0xad1:0x3ec2b5])) #Disasm from begin to end of check()
f.close()
from base64 import *
byte = []
flag[4]
key[4]
def right():
print "Right"
key[0] -= 1
flag[0] -= 1
def left():
print "Left"
#if RUBY_VERSION == 190
# error 1.9.0 not supported
#endif
#if RUBY_VERSION == 190
printf("1.9.0 not supported");
#endif
#ifndef GRANDPARENT_H
#define GRANDPARENT_H
struct foo
{
int member;
};
#endif /* GRANDPARENT_H */
@1nnOc3nt
1nnOc3nt / env.i
Last active January 4, 2019 02:10
#ifdef __unix__ /* __unix__ is usually defined by compilers targeting Unix systems */
printf("using linux");
#elif defined _WIN32 /* _WIN32 is usually defined by compilers targeting 32 or 64 bit Windows systems */
printf("using windows");
#endif
-------------------------------------------------------------------------------------------------------
/* Unix systems */
struct foo
{
int member;
};
struct foo
{
int member;
};