News for hackers. Stuff that matters.
Re:Mirai Botnet Client, Echo Loader and CNC source code by Jeraimee on Saturday October 22, 2016 @12:19AM (#12767165)
This source is incomplete. See https://github.com/0x27/linux.mirai for a full mirror of the release.
Re:Mirai Botnet Client, Echo Loader and CNC source code by Cyph0n on Saturday October 22, 2016 @01:10AM (#12767298)
Thanks.

Question for the C folks. The author seems to have reimplemented functions such as strlen, memcpy, and atoi in 'bot/util.h' instead of using the stdlib. Anyone know why?

https://github.com/0x27/linux.mirai/blob/master/mirai/bot/ut...

Re:Mirai Botnet Client, Echo Loader and CNC source code by yes_or_gnome on Saturday October 22, 2016 @01:21AM (#12767332)
Because you cannot rely on some chintzy IoT device to have dynamically loadable libraries. In all likelihood, they don't. But let's assume they do have loadable stdlib, would would you trust the integrity of your botnet to dozens of poorly designed IoT devices?
Re:Mirai Botnet Client, Echo Loader and CNC source code by justincormack on Saturday October 22, 2016 @06:07AM (#12768097)
You can statically link the binary you build, doesnt mean you need to reimplement.
Re:Mirai Botnet Client, Echo Loader and CNC source code by viraptor on Saturday October 22, 2016 @08:09AM (#12768356)
But it is easier to copy/paste those few functions rather than play with static libc and then making sure all the other functions don't get linked into the final binary.
Re:Mirai Botnet Client, Echo Loader and CNC source code by Cyph0n on Saturday October 22, 2016 @02:41AM (#12767547)
Don't most of these IoT devices usually run Linux though?
Re:Mirai Botnet Client, Echo Loader and CNC source code by noselasd on Saturday October 22, 2016 @05:06AM (#12767935)
Sure, but many of them only contains a static busybox binary and no libc.
Re:Mirai Botnet Client, Echo Loader and CNC source code by matt4077 on Saturday October 22, 2016 @01:20AM (#12767327)
Remember that this target IoT devices, where diversity is much higher than it would be for desktops or servers. the build scripts shows the targeted architectures:

i586 mips mipsel armv4l armv5l armv6l powerpc sparc m68k sh4

Re:Mirai Botnet Client, Echo Loader and CNC source code by foota on Saturday October 22, 2016 @01:18AM (#12767319)
I believe not all embedded systems have the c stdlib.
Re:Mirai Botnet Client, Echo Loader and CNC source code by jguegant on Saturday October 22, 2016 @05:05AM (#12767933)
Not the reason. Especially when the author includes headers like: #include <stdlib.h> #include <unistd.h> #include <sys/socket.h> #include <arpa/inet.h> #include <linux/ip.h> #include <linux/udp.h> #include <errno.h> #include <fcntl.h>