Database Reference
In-Depth Information
Compile the following C code using c:\>cl orabrute.cpp
#include "stdio.h"
#include "windows.h"
#include "strsafe.h"
char host[17];
char port[6];
char sid[31];
char password[31];
char millitimewait[6];
DWORD dwdmillitimewait;
char executecmd[4095];
int escape(char*dest, char*src)
{
int idest = 0, isrc = 0 ;
while(src[isrc])
{
if(src[isrc] == '\"')
{
dest[idest] = '\\';
idest ++;
}
dest[idest] = src[isrc];
isrc ++;
idest ++;
}
dest[idest]=0;
return 1;
}
int main(int argc, char * argv[])
{
SecureZeroMemory(host, sizeof( host ));
SecureZeroMemory(port, sizeof( port ));
SecureZeroMemory(sid, sizeof( sid ));
SecureZeroMemory(password, sizeof( password ));
SecureZeroMemory(millitimewait, sizeof( millitimewait ));
FILE *pfile;
UINT result;
printf("Orabrute v 1.2 by Paul M. Wright, David J. Morgan and Chris Anley:\n orabrute <hostip>
<port> <sid> <millitimewait>");
if(argc!=5)
{
printf("not enough arguments; command should be orabrute <hostip> <port> <sid>
<millitimewait>");
return 0;
}
strncpy(host,argv[1],sizeof( host )-1);
strncpy(port,argv[2],sizeof( port )-1);
strncpy(sid,argv[3],sizeof( sid )-1);
strncpy(millitimewait,argv[4],sizeof( millitimewait )-1);
Search WWH ::




Custom Search