Anonymous
Yeah, I gave you a book about rootkits to read, right?
Anonymous
I'm not a cracker , I've always been between being a white and grey hat
Anonymous
You changed username, it confused me
Anonymous
Never black hat
Anonymous
Yes , you did!
Anonymous
You always have the same username so I recognized you lmao
Anonymous
Have you read practical malware reverse engineering?
Anonymous
tbh most of the process of malware development is understanding the OS, so maybe a book on the Linux kernel API or the 4.4BSD book?
Anonymous
Or Windows internals by Russinovitch?
Jussi
Anonymous
Jussi
It is just a skmple program that will connect back to your open server
Anonymous
Jussi
And you can send commands
Anonymous
Yeah I know that
Jussi
Write one for linux
Anonymous
Joseph Kong actually wrote another book about Driver Development in FreeBSD which is excellent, as well as the rootkits for BSD
Jussi
There arent many viruses for linux
Anonymous
Also, might be interested to read the shellcoders handbook
Jussi
I'm sorry I can't remember
Anonymous
I learnt server client programming , but I don't know how I would implement it in a bot
Jussi
Jussi
Anonymous
Anonymous
I learnt how it works
Anonymous
Shellcodes are C programs that execute assembly so it's still very close to C
Anonymous
I had already learnt about that on Python
Anonymous
So yeah it wasn't hard to understand
Anonymous
It's always the same thing
Jussi
Writing a botnet:
Server:
SELECT with outfd and infd descriptor lists, some kind of message queue for commands/responses
Slave:
Open connection to server
Wait for incoming commands
Anonymous
Mmh
Jussi
Hard to implement? No
Anonymous
I'll try to figure out
Anonymous
I know how that works
klimi
Anonymous
Just need to write it lol
Jussi
Yep
Jussi
You asked for an exercise, then you told us what you like to do/what interests you
Jussi
I gave you an idea
Anonymous
Yeah
Anonymous
Thanks though!
Jussi
Good luck :)
Anonymous
Do you recommend me any sources to have a look on in case I can't manage to find out?
Jussi
I think IBM had very good select tutorial for handling multiple incoming connections
Jussi
Im on mobile now
Jussi
Ill try to find it
Anonymous
I'll try that then
Anonymous
As of now , I only built some simple TCP sockets
Anonymous
With a server and a client
Anonymous
So yeah , I didn't read yet about how to handle multiple incoming connections
Jussi
But for the client struct in server, I would do some struct as linked list so removing from the list is easy when slave disconnects. In that list struct I would add the socket and message queue struct, the message queue is just plain char** of messages
Jussi
And queues of both incoming and outcoming ofc
Jussi
But dont listen to me too much, implement it how you would do it
Jussi
read select man
Anonymous
I'd recommend using 0mq for message queueing. It's notoriously hard to get right
Jussi
https://www.ibm.com/support/knowledgecenter/en/ssw_i5_54/rzab6/xnonblock.htm
Jussi
I think this one was the good example of nonblocking select
Jussi
You can google with keywords multiplexing, sockets, c, select
Jussi
Jussi
Oh 0mq seems to handle sockets too :) thanks for the tip
Jussi
Yeah but do some simpler select program first
Anonymous
So should I read about select first?
Jussi
Yes
Anonymous
This one right? http://man7.org/linux/man-pages/man2/select.2.html
Jussi
Yes and this
Jussi
https://www.gnu.org/software/libc/manual/html_node/Server-Example.html
Jussi
For an example
Anonymous
Thanks so much to you and Tom!
Jussi
Np np
Jussi
Happy to help waiting for my flight to departure
nibu
Anybody knows shell windows commands
Dima
lol
Jussi
nibu
👍
Shivang
Any youtuber recommendation for learning c
Jussi