Skip to content

Instantly share code, notes, and snippets.

🐛

Paweł Łukasik pawlos

🐛
View GitHub Profile
View output.txt
File "/c/temp/ctf/ropemporium/task-write4/gdb-frontend/api/debug.py", line 61, in _exec__mT                                                                            
    output = callback(*args, **kwargs)                                            
  File "/c/temp/ctf/ropemporium/task-write4/gdb-frontend/api/debug.py", line 679, in serializableType                                                               
    serializable["alignof"] = ctype.alignof                                        
AttributeError: 'gdb.Type' object has no attribute 'alignof'                          
Traceback (most recent call last):                                                                                                                                        
  File "/c/temp/ctf/ropemporium/task-write4/gdb-frontend/api/debug.py", line 349, in getState                                                                             
    variable["type"]["terminal"] = serializableType(terminalType)                              
View output.txt
(gdb) [GDBFrontend] ('127.0.0.1', 36958) is connected.                                                                                                                      
(gdb) file ./write4                                                                                                                                                 
Reading symbols from ./write4...(no debugging symbols found)...done.                                                                                                  
[GDBFrontend] gdb_on_clear_objfiles()                                                                                                                                       
[GDBFrontend] gdb_on_new_objfile()                                                                                                                                          
(gdb) break main                                                                                                                                                            
View VCXSrv.0
# It looks like -multiwindow mode triggers the static color visual in both the internal x2go xserver and the external vcxsrv
# But it also looks like -multiwindow mode is how x2go client allows resizing of the remote desktop
# ...so I'm looking for a way to allow resizing of remote desktop w/out triggering static color visual.
#
# ...output of vcxsrv.exe's usage note:
Usage...
Vcxsrv [:<display>] [option]
:display-number
View pwntools-final.py
from pwn import *
t = process('./ret2win32')
context.terminal = ['/c/tools/wsl-terminal/open-wsl.exe','-e']
gdb.attach(t)
t.interactive()
View pwntools.py
from pwn import *
t = process('./ret2win32')
gdb.attach(t)
t.interactive()
View asan.txt
This file has been truncated, but you can view the full file.
=================================================================
==25766==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 445 byte(s) in 42 object(s) allocated from:
#0 0x7f2919d48538 in strdup (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x77538)
#1 0x7f29194fcb68 in r_str_new /home/ubuntu/radare2/libr/util/str.c:686
#2 0x7f2911d7aeda in __init_almighty_db /home/ubuntu/radare2/libr/core/panels.c:5261
#3 0x7f2911d7b157 in __init_all_dbs /home/ubuntu/radare2/libr/core/panels.c:5278
#4 0x7f2911d899d1 in __init_new_panels_root /home/ubuntu/radare2/libr/core/panels.c:6416
@pawlos
pawlos / solv.py
Last active Apr 18, 2020
Solution for TAMUCtf's leaning_tower!
View solv.py
hashes = ["9033bacfd0636139084ea80aa654113f3240f7fc",
"97f0f871be356f464bca862487e365d92fc507bb",
"11071c464490c8baaa979bf83e098f3318b36003",
"45fa0b57640f797ad28709cf7f3b495d61514418",
"2540407ace41adaaa279c9a9f8d900bd87a8aa5d",
"f4c50cd4475f6a1833180506817b4bbd45dc17f7",
"f0e8c88568fcb989f60f09f52b1aad1b7d2454b5",
"744dde01735bc3d2b047d7d9fbc5662b97628f01",
"2cab6da567fa23426f81d54326ca537e5bd89d7e",
"7f0bc15fb2695af18fd1e6c8df386f824cf67af9",
@pawlos
pawlos / Program.cs
Created Apr 6, 2020
Modification to the waiver code to handle try-catch
View Program.cs
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using Mono.Cecil;
using Mono.Cecil.Cil;
namespace SimpleILMeasurement
{
@pawlos
pawlos / a_happy_family.py
Created Mar 29, 2020
Solver for "A happy family (RE)" challenge from ångstromCTF 2020
View a_happy_family.py
#a_happy_family solver
from z3 import *
basechars = "angstromctf20"
def toascii(v):
res = ''
for i in range(8):
res += chr(v & 0xFF)
v >>= 8
View Program.cs
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using Mono.Cecil;
using Mono.Cecil.Cil;
namespace SimpleILMeasurement
{
You can’t perform that action at this time.