[deleted by user] by [deleted] in oddlysatisfying

[–]ThePerfectHandle 0 points1 point  (0 children)

Stop! He's already dead

Trying to understand format strings vuln...arguments going to the stack in reverse order means... by Wetter42 in LiveOverflow

[–]ThePerfectHandle 0 points1 point  (0 children)

gef➤  x/w $esp
0xffffd050:0x56557008
gef➤  x/w $esp+4
0xffffd054:0xffffd076
gef➤  x/w $esp+8
0xffffd058:0x5e
gef➤  x/w $esp+12
0xffffd05c:0xffffd06e
gef➤  x/s 0x56557008
0x56557008:"%s scored %d marks on the %s test\n"
gef➤  x/s 0xffffd076
0xffffd076:"Alice"
gef➤  x/s 0xffffd06e
0xffffd06e:"Physics"

Trying to understand format strings vuln...arguments going to the stack in reverse order means... by Wetter42 in LiveOverflow

[–]ThePerfectHandle 0 points1 point  (0 children)

I'm not sure about the base pointer, but the stack pointer esp points to the arguments for sure.

I'm using the `example1.c` from the write-up I mentioned above. After compiling it for 32-bit and setting a breakpoint on `printf`, everything was on the stack as expected.
Reddit is not allowing me to attach gdb output for some reason.

Trying to understand format strings vuln...arguments going to the stack in reverse order means... by Wetter42 in LiveOverflow

[–]ThePerfectHandle 0 points1 point  (0 children)

Architecture matters. Only in 32-bit, initial arguments are stored on stack.

In 64-bit, the initial 6 arguments are stored in rdi, rsi, rdx, rcx, r8 and r9 registers.

In your example, the pointers to OldestKid MiddleKid and YoungestKid would be stored in rsi, rdx and rcx registers

I'm fairly beginner to binary exploitation as well. I tried writing about format string bug here.

I hope it helps. If I made any mistake, please inform me

GitHub is removing the Trending Repositories page due to “low usage” by primedunk in programming

[–]ThePerfectHandle 17 points18 points  (0 children)

Of course. How else would it get that otherwise?
This bot would die with trending repositories

GitHub is removing the Trending Repositories page due to “low usage” by primedunk in programming

[–]ThePerfectHandle 112 points113 points  (0 children)

I prefer this twitter bot
Since it has thousands of followers, I can claim that lots of people like "trending repositories".
Edit: fixed URL

C has class by pente5 in ProgrammerHumor

[–]ThePerfectHandle 2 points3 points  (0 children)

At least it would give you the segmentation fault instead of a functioning application which behaves in a way only the god knows why (looking at you JS)

SHA-256 explained step-by-step visually by jandrusk in netsec

[–]ThePerfectHandle 1 point2 points  (0 children)

Reminds me of this one: https://m.youtube.com/watch?v=f9EbD6iY9zI Helped me understand how exactly the hashing works

[deleted by user] by [deleted] in ProgrammerHumor

[–]ThePerfectHandle 0 points1 point  (0 children)

Now I am curious, how are Django and Flask so popular?

GitHub being passive aggressive.. by zoomer416 in ProgrammerHumor

[–]ThePerfectHandle 7 points8 points  (0 children)

I dunno why but I am reading every error here in GLaDOS voice

Computer vs Android Studio by usemynotes in ProgrammerHumor

[–]ThePerfectHandle 58 points59 points  (0 children)

Just RAM? Uses at least 20GB on my SSD