Foro de elhacker.net

Programación => Programación General => Mensaje iniciado por: BigBear en 22 Junio 2013, 17:19 pm



Título: [Delphi] HTTP FingerPrinting 0.1
Publicado por: BigBear en 22 Junio 2013, 17:19 pm
Un simple HTTP FingerPrinting hecho en Delphi.

Una imagen :

(http://doddyhackman.webcindario.com/images/httpdelphi.jpg)

El codigo :

Código
  1. // HTTP FingerPrinting 0.1
  2. // Coded By Doddy H
  3.  
  4. unit http;
  5.  
  6. interface
  7.  
  8. uses
  9.  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  10.  Dialogs, StdCtrls, sMemo, sButton, sEdit, sLabel, sGroupBox, sSkinManager,
  11.  IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdHTTP,
  12.  IdCookieManager, Sockets, ComCtrls, sStatusBar, jpeg, ExtCtrls;
  13.  
  14. type
  15.  TForm1 = class(TForm)
  16.    sSkinManager1: TsSkinManager;
  17.    sGroupBox1: TsGroupBox;
  18.    sEdit1: TsEdit;
  19.    sButton1: TsButton;
  20.    sGroupBox2: TsGroupBox;
  21.    sMemo1: TsMemo;
  22.    IdHTTP1: TIdHTTP;
  23.    sStatusBar1: TsStatusBar;
  24.    Image1: TImage;
  25.    IdCookieManager1: TIdCookieManager;
  26.    procedure sButton1Click(Sender: TObject);
  27.    procedure FormCreate(Sender: TObject);
  28.  
  29.  private
  30.    { Private declarations }
  31.  public
  32.    { Public declarations }
  33.  end;
  34.  
  35. var
  36.  Form1: TForm1;
  37.  
  38. implementation
  39.  
  40. {$R *.dfm}
  41.  
  42. procedure TForm1.FormCreate(Sender: TObject);
  43. begin
  44.  sSkinManager1.SkinDirectory := ExtractFilePath(Application.ExeName) + 'Data';
  45.  sSkinManager1.SkinName := 'cappuccino';
  46.  sSkinManager1.Active := True;
  47. end;
  48.  
  49. procedure TForm1.sButton1Click(Sender: TObject);
  50. var
  51.  i: integer;
  52.  
  53. begin
  54.  
  55.  sStatusBar1.Panels[0].text := '[+] Working ...';
  56.  Form1.sStatusBar1.Update;
  57.  
  58.  sMemo1.Clear;
  59.  
  60.  try
  61.  
  62.    IdHTTP1.Get(sEdit1.text);
  63.  
  64.    sMemo1.Lines.Add('[+] ' + IdHTTP1.Response.ResponseText);
  65.    sMemo1.Lines.Add('[+] Date : ' + DateTimeToStr(IdHTTP1.Response.Date));
  66.    sMemo1.Lines.Add('[+] Server : ' + IdHTTP1.Response.Server);
  67.    sMemo1.Lines.Add('[+] Last-Modified : ' + DateTimeToStr
  68.        (IdHTTP1.Response.LastModified));
  69.    sMemo1.Lines.Add('[+] ETag: ' + IdHTTP1.Response.ETag);
  70.    sMemo1.Lines.Add('[+] Accept-Ranges : ' + IdHTTP1.Response.AcceptRanges);
  71.    sMemo1.Lines.Add('[+] Content-Length : ' + IntToStr
  72.        (IdHTTP1.Response.ContentLength));
  73.    sMemo1.Lines.Add('[+] Connection : ' + IdHTTP1.Response.Connection);
  74.    sMemo1.Lines.Add('[+] Content-Type : ' + IdHTTP1.Response.ContentType);
  75.  
  76.    for i := 1 to IdCookieManager1.CookieCollection.count do
  77.    begin
  78.      sMemo1.Lines.Add('[+] Cookie : ' + IdCookieManager1.CookieCollection.Items
  79.          [i - 1].CookieText);
  80.    end;
  81.  
  82.    sStatusBar1.Panels[0].text := '[+] Done';
  83.    Form1.sStatusBar1.Update;
  84.  
  85.  except
  86.    sStatusBar1.Panels[0].text := '[-] Error';
  87.    Form1.sStatusBar1.Update;
  88.  
  89.  end;
  90.  
  91. end;
  92.  
  93. end.
  94.  
  95. // The End ?
  96.  

Si lo quieren bajar lo pueden hacer de aca (https://sourceforge.net/projects/httpfingerprint/)