![]() |
|
What do you have copied right now? - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: General (https://sinister.ly/Forum-General) +--- Forum: The Lounge (https://sinister.ly/Forum-The-Lounge) +--- Thread: What do you have copied right now? (/Thread-What-do-you-have-copied-right-now) |
RE: What do you have copied right now? - Blink - 04-13-2017 Code: int main() {
char key;
rawOn();
initTerm();
resetTerm();
while (1) { //Crashes in segfault. Fuck.
key = getKey();
dBuff = (char *) realloc(dBuff, strlen(key));
strcat(dBuff, (key));
resetTerm();
printf(dBuff);
}
return 0;
free(dBuff);
}RE: What do you have copied right now? - m0dem - 04-13-2017 (04-13-2017, 10:24 PM)Ender Wrote: -snip- Noob. Spoiler:
Nah, just kidding. ![]() Btw, where do you define dBuff? Code: Breakpoint 1, 0x00401340 in main ()
(gdb) disas main
Dump of assembler code for function main:
=> 0x00401340 <+0>: push $0x402000
0x00401345 <+5>: call 0x401b90 <printf>
0x0040134a <+10>: add $0x4,%esp
0x0040134d <+13>: push $0x405008
0x00401352 <+18>: push $0x40200a
0x00401357 <+23>: call 0x401b98 <scanf>
0x0040135c <+28>: add $0x8,%esp
0x0040135f <+31>: push $0x405008
0x00401364 <+36>: call 0x401b90 <printf>
0x00401369 <+41>: add $0x4,%esp
0x0040136c <+44>: ret
0x0040136d <+45>: add %al,(%eax)
0x0040136f <+47>: add %al,0x448b1cec(%ebx)
End of assembler dump.
(gdb)RE: What do you have copied right now? - Skullmeat - 04-14-2017 I had linked this when a friends copy of windows was shitting the bed. RE: What do you have copied right now? - Blink - 04-14-2017 (04-13-2017, 11:16 PM)m0dem Wrote:(04-13-2017, 10:24 PM)Ender Wrote: -snip- https://github.com/The-Sushi/Sushi Code: char *dBuff;RE: What do you have copied right now? - Synthx - 04-19-2017 Bumping the thread, and giving the 1 post needed to make the daily goal! Code: Ricochet: ricochet:hmcgm7cw7y6c4k5h
Email: synthx@protonmail.com
Discord: Synthx#1356RE: What do you have copied right now? - mothered - 04-19-2017 https://portal.fmcsa.dot.gov/login Copied It Into a secure channel to test It's security. It did this a couple of days ago and It's still sitting In my clipboard. RE: What do you have copied right now? - Blink - 04-20-2017 http://a.sinister.ly/fhsqoe.png RE: What do you have copied right now? - zenith - 04-20-2017 LMAO I almost put in my visa card number RE: What do you have copied right now? - Skryptec - 04-20-2017 https://cdn.discordapp.com/attachments/138500518258409472/304505235676725249/IMG_20170420_083443.jpg RE: What do you have copied right now? - Mr.Kurd - 04-20-2017 Hhh I copied this a while ago: Code: Edit: |