亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? mainform.pas

?? 網(wǎng)絡(luò)掃描
?? PAS
字號:
{
    websniffer - mainform.pas (Ver1.1)(HTTP connection analysis)
    Copyright (C) 2005 Josef Sch黷zenberger

    websniffer is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    websniffer is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with websniffer; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
}
unit MainForm;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Menus, StdCtrls, Buttons, ComCtrls,PcapNet,SniffThread, ExtCtrls,ShellAPI,
  ImgList;

type
  TForm1 = class(TForm)
    GroupBox2: TGroupBox;
    ComboBoxInterface: TComboBox;
    BitBtnStart: TBitBtn;
    BitBtn3: TBitBtn;
    GroupBox1: TGroupBox;
    EditFolder: TEdit;
    SpeedButton1: TSpeedButton;
    CheckBoxFolders: TCheckBox;
    StatusBar: TStatusBar;
    CheckBoxLog: TCheckBox;
    Image1: TImage;
    PopupMenu1: TPopupMenu;
    Show1: TMenuItem;
    Exit1: TMenuItem;
    ImageList1: TImageList;
    procedure SpeedButton1Click(Sender: TObject);
    procedure ComboBoxInterfaceDropDown(Sender: TObject);
    procedure FormActivate(Sender: TObject);
    procedure BitBtnStartClick(Sender: TObject);
    procedure BitBtn3Click(Sender: TObject);
    procedure FormCreate(Sender: TObject);
    procedure Show1Click(Sender: TObject);
    procedure FormDestroy(Sender: TObject);
    procedure Exit1Click(Sender: TObject);
  private
    procedure SaveIniFile;
    procedure LoadIniFile;
    procedure FileSave(var Filename:String;Host:String;Len:Integer);
    procedure HandleError(const msg:String);
    procedure Minimize(Sender: TObject);
  public
   IconNotifyData : TNotifyIconData;
   procedure WndProc(var Msg : TMessage); override;
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}
uses FileCtrl,IniFiles,StrUtils,conitem;

procedure TForm1.FileSave(var Filename:String;Host:String;Len:Integer);
begin
  if not CheckBoxFolders.Checked  then FileName:=AnsiReplaceText(FileName,'\','_');
  FileName:=IncludeTrailingPathDelimiter(EditFolder.Text)+FileName;
  form1.StatusBar.Panels[1].Text:=Filename;
end;
procedure TForm1.HandleError(const msg:String);
begin
  form1.StatusBar.Panels[1].Text:=msg;
end;
procedure TForm1.SaveIniFile;
var
  IniFileVar: TIniFile;
begin
  IniFileVar := TIniFile.create(ExtractFileDir(ParamStr(0))+'\WebSniffer.ini');
  IniFileVar.WriteString('Folder', 'Directory', EditFolder.Text);
  IniFileVar.WriteBool('Folder', 'Subfolder', CheckBoxFolders.Checked);
  IniFileVar.WriteString('Interface', 'Name', ComboBoxInterface.Text);
  IniFileVar.WriteBool('Interface', 'Log', CheckBoxLog.Checked);
  IniFileVar.free;
end;

Procedure TForm1.LoadIniFile;
var
  IniFileVar: TIniFile;
begin
  IniFileVar := TIniFile.create(ExtractFileDir(ParamStr(0))+'\WebSniffer.ini');
  EditFolder.Text := IniFileVar.ReadString('Folder', 'Directory', '.\data');
  CheckBoxFolders.Checked:=IniFileVar.ReadBool('Folder', 'Subfolder', false);
  ComboBoxInterface.Text := IniFileVar.ReadString('Interface', 'Name', '?????');
  CheckBoxLog.Checked:=IniFileVar.ReadBool('Interface', 'Log', false);
  IniFileVar.Free;
end;

procedure TForm1.SpeedButton1Click(Sender: TObject);
var dir:String;
begin
  dir:=EditFolder.Text;
  SelectDirectory('Select the folder where all captured files will be saved. ','c:\',dir);
  EditFolder.Text:=dir;
  EditFolder.SetFocus;
end;

procedure TForm1.ComboBoxInterfaceDropDown(Sender: TObject);
var alldevs,dev:pcap_if; ErrBuf:TErrBuf;
    line:String;i:integer;
begin
  ComboBoxInterface.items.Clear;
  if Handlewpcap=0 then
  begin
    Application.MessageBox('No interfaces found! Make sure pcap/Winpcap is installed.', 'Error', MB_OK		);
    exit;
  end;
  i:=pcap_findalldevs(Pointer(@alldevs),@ErrBuf);
  if i<>0 then   begin
    Application.MessageBox('No interfaces found! Make sure pcap/Winpcap is installed.', 'Error', MB_OK		);
    exit;
  end;
  dev:=alldevs;
  while dev<>nil do begin
    Line:=dev.name;
    ComboBoxInterface.items.Add(Line);
    dev:=dev.next;
  end;
  pcap_freealldevs(alldevs);
end;

procedure TForm1.FormActivate(Sender: TObject);
begin
  LoadIniFile;
end;

procedure TForm1.BitBtnStartClick(Sender: TObject);
var alldevs,dev,seldev:pcap_if;ErrBuf:TErrBuf;
    i:integer;promisc:integer;adhandle:Pointer;
begin
  if Handlewpcap=0 then
  begin
     Application.MessageBox('No interfaces found! Make sure pcap/Winpcap is installed.', 'Error', MB_OK		);
     exit;
  end;
  SaveIniFile;
  FillChar(ErrBuf, sizeof(ErrBuf), #0);
  i:=pcap_findalldevs(Pointer(@alldevs),@ErrBuf);
  if i<>0 then
  begin
    Application.MessageBox('No interfaces found! Make sure pcap/Winpcap is installed.', 'Error', MB_OK		);
    exit;
  end;
  dev:=alldevs; seldev:=nil;
  while dev<>nil do
  begin
    if  ComboBoxInterface.Text=dev.name then seldev:=dev;
    dev:=dev.next;
  end;
  if seldev=nil then
  begin
    Application.MessageBox('Select interface.', 'Look', MB_OK);
    pcap_freealldevs(alldevs);
    exit;
  end;
  BitBtnStart.Enabled:=false;
  StatusBar.Panels[1].Text:='sniffing started';
  Imagelist1.GetIcon(0,application.Icon);
  IconNotifyData.hIcon := Application.Icon.Handle;
  Shell_NotifyIcon(NIM_MODIFY,@IconNotifyData);
  promisc:=0;
  ConList:=TConlist.Create;
  ConList.OnSaveFile:=FileSave;
  ConList.OnPacketMessage:=nil;
  ConList.OnError:=HandleError;
  adhandle:= pcap_open_live(seldev.name,	// name of the device
   			 65536,		// portion of the packet to capture.
   			 // 65536 grants that the whole packet will be captured on all the MACs.
        		 promisc,     	// promiscuous mode
			 1000,		// read timeout
			 @errbuf );    	// error buffer
  pcap_freealldevs(alldevs);
  SniffThread1:=TSniffThread.Create(true);
  SniffThread1.run(adhandle);
  SniffThread1.Resume;
end;


procedure TForm1.BitBtn3Click(Sender: TObject);
begin
  BitBtnStart.Enabled:=true;
  StatusBar.Panels[1].Text:='stopped';
  if SniffThread1<> nil then SniffThread1.stop;
  Imagelist1.GetIcon(1,application.Icon);
  IconNotifyData.hIcon := Application.Icon.Handle;
  Shell_NotifyIcon(NIM_MODIFY,@IconNotifyData);
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  //Set up the IconNotifyData structure so that it receives
  //the window messages sent to the application and displays
  //the application's tips
  with IconNotifyData do
  begin
    hIcon := Application.Icon.Handle;
    uCallbackMessage := WM_USER + 1;
    cbSize := sizeof(IconNotifyData);
    Wnd := Handle;
    uID := 100;
    uFlags := NIF_MESSAGE + NIF_ICON + NIF_TIP;
  end;
  //Copy the Application's Title into the tip for the icon
  StrPCopy(IconNotifyData.szTip, Application.Title);
  //Add the Icon to the system tray and use the
  //the structure and its values
  Shell_NotifyIcon(NIM_ADD, @IconNotifyData);
  Application.OnMinimize := Minimize;

end;                        
procedure TForm1.Minimize(Sender: TObject);
begin
  ShowWindow(Application.Handle, SW_HIDE);
end;

procedure TForm1.WndProc(var Msg : TMessage);
var
  p : TPoint;
begin
  case Msg.Msg of
    WM_USER + 1:
    case Msg.lParam of
      WM_RBUTTONDOWN: begin
                        GetCursorPos(p);
                        PopupMenu1.Popup(p.x, p.y);
                      end;
      WM_LBUTTONDOWN: begin
                        Show1Click(self);
                      end;
    end;
  end;
  inherited;
end;


procedure TForm1.Show1Click(Sender: TObject);
begin
  Application.Restore;
  BringToFront;
end;

procedure TForm1.FormDestroy(Sender: TObject);
begin
  Shell_NotifyIcon(NIM_DELETE, @IconNotifyData);
end;

procedure TForm1.Exit1Click(Sender: TObject);
begin
  if SniffThread1<> nil then SniffThread1.stop;
  Shell_NotifyIcon(NIM_DELETE, @IconNotifyData);
  close;
end;

end.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久亚洲精品小早川怜子| 欧美日韩一区在线| 国产欧美精品区一区二区三区| 激情五月播播久久久精品| 欧美一区二区视频观看视频| 精品在线播放免费| 国产欧美日韩另类视频免费观看| 成人开心网精品视频| 亚洲欧洲综合另类在线| 在线免费观看日本欧美| 日日摸夜夜添夜夜添国产精品 | 国产成人午夜高潮毛片| 国产女人aaa级久久久级| 99久久精品国产一区二区三区| 一区二区三区资源| 日韩欧美精品在线视频| 国产精品18久久久久久vr| 国产精品国产三级国产a| 欧美午夜宅男影院| 国内外成人在线| 亚洲欧洲国产专区| 91精品国产91久久综合桃花| 蜜臀av一区二区| 亚洲视频综合在线| 制服丝袜亚洲色图| 成人福利在线看| 午夜成人免费视频| 国产日韩精品久久久| 欧美性生活影院| 国产丶欧美丶日本不卡视频| 一区二区三区在线播| 精品欧美一区二区久久| 99在线精品观看| 国产综合一区二区| 一区二区三区精密机械公司| 欧美精品一区二区三区蜜桃视频| 色综合久久中文字幕综合网| 久久er精品视频| 亚洲免费观看高清完整版在线观看 | 欧美日韩成人综合在线一区二区 | 日本欧美一区二区在线观看| 国产精品视频yy9299一区| 欧美高清视频www夜色资源网| 国产伦理精品不卡| 天堂在线亚洲视频| 亚洲欧美激情插| wwwwxxxxx欧美| 欧美一区二区视频在线观看| 一本色道久久综合亚洲aⅴ蜜桃 | 成人av免费在线观看| 久草中文综合在线| 午夜视频一区在线观看| 亚洲日穴在线视频| 国产精品视频一二| 久久久久久久久久久黄色| 欧美精品久久一区二区三区| 91一区二区三区在线观看| 国产精品一级片| 久久精品99久久久| 亚洲va国产va欧美va观看| 亚洲三级电影全部在线观看高清| 久久午夜国产精品| 日韩视频一区二区三区| 欧美日本乱大交xxxxx| 日本道精品一区二区三区| av激情综合网| 国产成人精品一区二区三区网站观看| 日韩电影一二三区| 日本三级韩国三级欧美三级| 午夜精品久久久久久| 国产精品77777| 国产综合色视频| 国产精品一区二区你懂的| 精品在线亚洲视频| 热久久久久久久| 免费精品视频在线| 麻豆精品在线看| 欧美少妇xxx| 欧美日韩一级二级三级| 在线视频你懂得一区二区三区| 国产一区二区在线免费观看| 1000部国产精品成人观看| 亚洲国产精品ⅴa在线观看| 欧美电影在线免费观看| 日本视频在线一区| 亚洲成在人线在线播放| 久久精品夜夜夜夜久久| 欧美videofree性高清杂交| 91一区二区三区在线播放| 久久超碰97人人做人人爱| 亚洲图片欧美视频| 成人av手机在线观看| 国产精品夜夜爽| 国产91精品免费| www.综合网.com| 色婷婷国产精品久久包臀| 欧洲一区二区三区免费视频| 制服.丝袜.亚洲.中文.综合 | 国产suv精品一区二区三区| 国产91富婆露脸刺激对白 | 在线观看成人免费视频| 欧美三级中文字幕在线观看| 日韩欧美一级二级三级| 久久精品视频在线免费观看| 亚洲人xxxx| 同产精品九九九| 国产精品亚洲视频| 一本色道久久综合狠狠躁的推荐| 在线综合亚洲欧美在线视频| 国产片一区二区| 亚洲地区一二三色| 国产乱人伦偷精品视频不卡| 国产亚洲精品超碰| 亚洲精品美国一| 久久精品国产亚洲高清剧情介绍| www.欧美色图| 日韩美女主播在线视频一区二区三区 | 97se亚洲国产综合自在线| 欧美三级日韩三级| 国产亚洲精品资源在线26u| 亚洲国产日日夜夜| 国产精品一区二区三区乱码| 欧美三级电影网站| 国产精品人成在线观看免费 | 在线精品亚洲一区二区不卡| 日韩免费视频线观看| 尤物视频一区二区| 国内精品视频一区二区三区八戒| 91福利视频网站| 欧美国产成人精品| 麻豆免费精品视频| 在线精品视频一区二区| 国产婷婷色一区二区三区 | 亚洲综合男人的天堂| 久久国产精品第一页| 欧美中文一区二区三区| 久久精品一二三| 免费精品视频最新在线| 在线观看不卡一区| 综合自拍亚洲综合图不卡区| 激情av综合网| 91精品国产丝袜白色高跟鞋| 亚洲免费资源在线播放| 国产不卡免费视频| 欧美成人艳星乳罩| 天天综合色天天综合色h| 91尤物视频在线观看| 欧美国产欧美综合| 精品一二线国产| 日韩欧美在线综合网| 在线国产电影不卡| 国产精品欧美久久久久无广告 | 久久99精品国产麻豆婷婷洗澡| 91黄视频在线| 一色屋精品亚洲香蕉网站| 狠狠色狠狠色综合日日91app| 欧美精品九九99久久| 亚洲午夜私人影院| 91成人网在线| 亚洲国产一区二区视频| 欧美自拍丝袜亚洲| 亚洲一区二区三区四区在线免费观看| 99免费精品在线| 国产精品精品国产色婷婷| 不卡视频一二三| 一色屋精品亚洲香蕉网站| 99re这里只有精品首页| 自拍偷拍国产精品| 色婷婷激情综合| 亚洲电影你懂得| 欧美精品电影在线播放| 日韩高清在线电影| 欧美一区二区三区啪啪| 免费不卡在线观看| 2020国产精品久久精品美国| 国产一区91精品张津瑜| 欧美韩国日本综合| 91色|porny| 婷婷夜色潮精品综合在线| 6080亚洲精品一区二区| 日韩高清欧美激情| 久久久久久久久岛国免费| 韩日欧美一区二区三区| 国产欧美日韩麻豆91| 91丝袜美腿高跟国产极品老师| 一区二区三区国产| 91精品黄色片免费大全| 精品亚洲国产成人av制服丝袜| 精品欧美一区二区久久| 国产精品99久久久久| 日韩久久一区二区| 欧美午夜不卡在线观看免费| 免费不卡在线视频| 国产精品美女久久久久久久久| 在线免费视频一区二区| 欧美bbbbb| ...av二区三区久久精品| 欧美丝袜自拍制服另类| 蜜臀国产一区二区三区在线播放| 久久色视频免费观看|