|
|
|
|
| Subiectul anterior :: Subiectul urmator |
| Autor |
Mesaj |
Royal Administrator


Data inscrierii: 11/Aug/2008 Mesaje: 359
|
Trimis: 24/08/2008 20:02 Titlul subiectului: IM bomber C++ |
|
|
| Cod: | /*
Instant Messenger Bomber
Coded by a59
[ 6 - 21 - 07 ]
*/
#include <windows.h>
#include <stdio.h>
void Type( char* szString );
void RandomizeBuffer( char* szBuffer, int iLen );
void InterpretMethod( void );
void Type( char* szString )
{
int iLen = strlen( szString );
bool bShiftDown = false;
for( int i = 0; i < iLen; i++ )
{
short sKey = VkKeyScan( szString[ i ] );
if( ( sKey >> 8 ) & 1 )
{
keybd_event( VK_LSHIFT, 0, 0, 0 );
bShiftDown = true;
}
keybd_event( (unsigned char)sKey, 0, 0, 0 );
if( bShiftDown )
{
keybd_event( VK_LSHIFT, 0, KEYEVENTF_KEYUP, 0 );
bShiftDown = false;
}
}
};
void RandomizeBuffer( char* szBuffer, int iLen )
{
char* szList = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890";
for( int i = 0; i < iLen; i++ )
szBuffer[ i ] = szList[ rand( ) % strlen( szList ) ];
szBuffer[ iLen ] = 0;
};
void InterpretMethod( void )
{
char szBuffer[ 512 ], szMethod[ 32 ], szLength[ 8 ], szTime[ 8 ];
bool bCheckedMethods = false;
unsigned long uStartCount;
int i, iSent = 0;
while( true )
{
printf( "Choose your method, type 'methods' for a list\n" );
printf( "> " );
scanf( "%s", szMethod );
if( !strcmp( szMethod, "methods" ) )
{
printf( "1 - Random strings\n" );
printf( "2 - User defined message\n" );
printf( "3 - Smiley spam\n" );
printf( "4 - Exit\n" );
bCheckedMethods = true;
}
switch( atoi( szMethod ) )
{
case 1:
printf( "Enter the length of each random string\n" );
printf( "> " );
scanf( "%s", szLength );
printf( "Enter how many seconds to spam\n" );
printf( "> " );
scanf( "%s", szTime );
printf( "Spamming in 3 seconds...\n" );
Sleep( 3000 );
uStartCount = GetTickCount( );
while( ( ( GetTickCount( ) - uStartCount ) / 1000 ) < (unsigned)atoi( szTime ) )
{
RandomizeBuffer( szBuffer, atoi( szLength ) );
Type( szBuffer );
keybd_event( VK_RETURN, 0, 0, 0 );
iSent++;
}
printf( "Sent %d messages\n", iSent );
break;
|
|
|
| Sus |
|
 |
|
|
Nu puteti crea un subiect nou in acest forum Nu puteti raspunde in subiectele acestui forum Nu puteti modifica mesajele proprii din acest forum Nu puteti sterge mesajele proprii din acest forum Nu puteti vota in chestionarele din acest forum
|
Powered by phpBB © 2001, 2002 phpBB Group Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro
|
|
|
|
|