was ist neu ¦  programmier tips ¦  indy artikel ¦  intraweb artikel ¦  informationen ¦  links ¦  interviews
 sonstiges ¦  tutorials ¦  Add&Win Gewinnspiel

Tips (1541)

Dateien (137)
Datenbanken (90)
Drucken (35)
Grafik (114)
IDE (21)
Indy (5)
Internet / LAN (130)
IntraWeb (0)
Mathematik (76)
Multimedia (45)
Oberfläche (107)
Objekte/
ActiveX (51)

OpenTools API (3)
Sonstiges (126)
Strings (83)
System (266)
VCL (242)

Tips sortiert nach
Komponente


Tip suchen

Tip hinzufügen

Add&Win Gewinnspiel

Werbung

33 Visitors Online


 
...eine Webpage mit versteckter IP herunterladen?
Autor: Christian Poljac
Homepage: www.big-x.cjb.net
[ Tip ausdrucken ]  

Tip Bewertung (16):  
     


{ Add a button and memo }

implementation

{$R *.dfm}

uses
  
Urlmon;

procedure TForm1.Button1Click(Sender : TObject);
var
  
ca : iinterface;
  rls : Integer;
  stat : iBindStatusCallBack;
  rr : Cardinal;
  tag : _tagBindInfo;
  exGuid : tguid;
  noIp : Pointer;
  res : HResult;
begin
  
// Make a 0.0.0.0 ip giud
  
exGuid.D1 := rr;
  exGuid.D2 := word('0');
  exGuid.D3 := word('.');
  // Set Tag options
  
with tag do 
  begin
    
// set "0." ip guid
    
iid := exGuid;
    // set needed size
    
cbSize := sizeOf('www.big-x.cjb.net');
    // Add ip hiding ( not tested, but should work )
    
securityAttributes.lpSecurityDescriptor := noIp;
    securityAttributes.nLength := length('0.0.0.0');
    securityAttributes.bInheritHandle := True;
  end;{
 Extra: res := stat.GetBindInfo(rr, tag);}
  //Start downloading webpage
  
try
    
urlmon.URLDownloadToFile(ca, 'www.big-x.cjb.net', 'filename.htm', 1, stat);
  except
    
ShowMessage('Could not download the webpage!');
  end;
  //Load the webpage source to a memo
  
memo1.Lines.LoadFromFile('filename.htm');
end;

 

Bewerten Sie diesen Tipp:

dürftig
ausgezeichnet


Copyright © by SwissDelphiCenter.ch
All trademarks are the sole property of their respective owners