BinaryByter
"hey, they emit mov eax, <char> .. I should do that too"
Wim
Sir, how to start cernal dov on kali loncox
Are you one of the guys spamming me in PM to do your homework!?
BinaryByter
Are you one of the guys spamming me in PM to do your homework!?
those are very frequent when being in this group
Wim
lol I figured 😂
BinaryByter
Sir, how to start cernal dov on kali loncox
and I thought that marrying you would be a good idea
BinaryByter
😢
Wim
Ludovic is right though on the first C++'s
BinaryByter
Wim
C++ was once incepted to add OO to C but did walk its own path after that
BinaryByter
luckily 😂
Wim
Still many don't even know that and talk all kinds of bullshit
BinaryByter
😂
Wim
We have people talking about OO in C; its a bunch of glue instead, surely it might do something like-ish, but its far from it
Ariana
just make sure you're ok with your wifi being down every few seconds with me screwing with it
BinaryByter
its really just to show off
Wim
But hey mr vbextreme says more crap, right? He's doing a 10 byte bootsector on atmel in C but can't boot an X86 from a legacy bios in it
Wim
But he's sure he could do better in C 😂
Wim
Thats what he was asking last time I asked you to re-phrase your question
BinaryByter
holy moly... gotta fit a full libc in those 10 bytes
BinaryByter
😂
Wim
Wait what, I was asking
BinaryByter
wait, libc isnt there in the freestanding
Wim
He doesn't understand even that
Wim
Besides, he thinks Siemens knows best
BinaryByter
Besides, he thinks Siemens knows best
SC++, my new favourite c-cc
Wim
Building a way too expensive platform around dirt cheap chips because people are stupid enough to buy 😂
Wim
But lets not be it about him
Wim
Most don't know what they're working with
Wim
Ludovic at least shows insight
BinaryByter
Please Mention Secrets PMS
Wim
PMS -> Gerneral state of being to many females
BinaryByter
yes :D
BinaryByter
unfortunately 😢
Daniele°
BinaryByter
libc is optional
not if you compile for linux
Daniele°
BinaryByter
Is Always optional
okay, then show me that C can do a full hello world in less than 50 bytes
BinaryByter
that runs on linux
Wim
(Which ASM variant would you like?)
BinaryByter
I'll take... umm
BinaryByter
I'll take... umm
thats a hard pick
BinaryByter
so many nice flavours
BinaryByter
maybe Phillip's assembler dialect, since its a bit less known. Also, I know the guy who implemented the compiler personally
Wim
bios, ah,0eh or 13h; kernel using int 80h or int 21h in dos/windows/os2, direct memory writes.. the list goes on
BinaryByter
😂
not "😂". show me
MᏫᎻᎯᎷᎷᎬᎠ
I think it's a good practice to learn the language just by watching you guys spit some C++ bullets here
BinaryByter
thanks :D
MᏫᎻᎯᎷᎷᎬᎠ
Thank YOU
Daniele°
not "😂". show me
You Need only call systemcall write
BinaryByter
in C++?
BinaryByter
show me the program code :D
Daniele°
show me the program code :D
_start(){ //Bla bla bla }
BinaryByter
?
Daniele°
?
main need libc
BinaryByter
_start(){ //Bla bla bla }
i'd like to see the full code
Daniele°
Entry point on Linux is _start
Daniele°
no
Yes
BinaryByter
Nope
Daniele°
Yep
BinaryByter
.x64 START SEGMENT USE64 BUFFER_SIZE equ 100000 _INIT PROC NEAR _INIT ENDP END_PTR equ $ START ENDS END _INIT compiles well under linux
Daniele°
_start(){ //Bla bla bla }
Try, build with gcc -nostdlib
Daniele°
Naturally crash because you Need to exit
BinaryByter
_start(){ //Bla bla bla }
even vscode is like "wtf is this shit"?
BinaryByter
😂
Daniele°
asm bla bla bla int 0x80 bla bla bla
Wim
Naturally crash because you Need to exit
That doesn't have anything to do with the validness and correct entry-point he's exporting not called _start
Wim
_start neither is a linux thing at all either, its a GNU thing
BinaryByter
[maximilian@localhost vbextreme]$ gcc ./t1.cpp -nostdlib ./t1.cpp:1:9: error: ISO C++ forbids declaration of ‘_start’ with no type [-fpermissive] _start () { ^ [maximilian@localhost vbextreme]$