cscg is loooong

This commit is contained in:
2026-03-18 05:59:37 +01:00
parent 0c1e63fb3a
commit 7ac813dc0c
1109 changed files with 14511 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
b main
vmmap
b _start
b main
r
b main
checksec main
checksec
b *0x403550
r
b *0x4035DD
r
n
n
n
c
b *0x4035DD
r ./hello_world.tfl
b *0x4035DA
b *0x4035DA
r ./hello_world.tfl
b *0x4035DA
r
b *0x4035DA
r

View File

@@ -0,0 +1,17 @@
import idc
import struct
addr = here() # or replace with the actual address e.g. 0x47F240
data = bytes([idc.get_wide_byte(addr + i) for i in range(39)])
flag = idc.get_wide_byte(addr + 39)
key = idc.get_qword(addr + 40)
print(f"Data: {data.hex()}")
print(f"Decrypted: {flag}")
print(f"Key: {key:#018x}")
# Decrypt it immediately
decrypted = bytes(~(b ^ ((key >> (8 * (i % 8))) & 0xFF)) & 0xFF for i, b in enumerate(data))
print(f"Plaintext: {decrypted}")
print(f"As string: {decrypted.decode('utf-8', errors='replace')}")

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,12 @@
break *0x4035da
run flag_checker.tfl AAAA
printf "sub_410450 result: %d\n", $r15b
set $r15b = 0
break *0x40365e
continue
printf "At main VM call\n"
set $wrapper = *(long long*)$rsi
set $bc_base = *(long long*)($wrapper+0x10)
set $bc_size = *(long long*)($wrapper+0x18)
printf "bc_base=%p size=%d\n", $bc_base, $bc_size
dump binary memory /tmp/bc_main.bin $bc_base ($bc_base+$bc_size)

View File

@@ -0,0 +1,11 @@
break *0x40356f
run flag_checker.tfl AAAA
set $eax = 0
break *0x40365e
continue
printf "At main sub_405120 call\n"
set $wrapper = *(long long*)$rsi
set $bc_base = *(long long*)($wrapper+0x10)
set $bc_size = *(long long*)($wrapper+0x18)
printf "bc_base=%p size=%d\n", $bc_base, $bc_size
dump binary memory /tmp/bc_main.bin $bc_base ($bc_base+$bc_size)

View File

@@ -0,0 +1,9 @@
break *0x40356f
run flag_checker.tfl AAAA
set $eax = 0
break *0x404010
commands 2
printf "HASH pc=%lld\n", *(long long*)$rdx
continue
end
continue

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.