This file contains hidden or 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
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 |
This file contains hidden or 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
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): |
This file contains hidden or 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
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 = [] |
This file contains hidden or 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
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 = [] |
This file contains hidden or 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
flag[4] | |
key[4] | |
def right(): | |
print "Right" | |
key[0] -= 1 | |
flag[0] -= 1 | |
def left(): | |
print "Left" |
This file contains hidden or 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
#if RUBY_VERSION == 190 | |
# error 1.9.0 not supported | |
#endif |
This file contains hidden or 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
#if RUBY_VERSION == 190 | |
printf("1.9.0 not supported"); | |
#endif |
This file contains hidden or 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
#ifndef GRANDPARENT_H | |
#define GRANDPARENT_H | |
struct foo | |
{ | |
int member; | |
}; | |
#endif /* GRANDPARENT_H */ |
This file contains hidden or 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
#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 */ |
This file contains hidden or 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
struct foo | |
{ | |
int member; | |
}; | |
struct foo | |
{ | |
int member; | |
}; |
NewerOlder