提取win98上網密碼 (轉)
提取win98上網密碼 (轉)[@more@]unit Unit1;
interface
uses
, SysUtils, Classes, Forms, , Controls, StdCtrls;
type
TForm1 = class(TForm)
GroupBox1: TGroupBox;
ListBox: TListBox;
Label1: TLabel;
Label2: TLabel;
procedure Label1Click(Sender: T);
procedure FormShow(Sender: TObject);
private
{ Private declarations }
public
hMPR: THandle;
end;
var
Form1: TForm1;
const
Count: Integer = 0;
functionEnumCachedPasss(lp: lpStr; w: Word; b: Byte; PC: PChar; dw: DWord): Word; stdcall;
implementation
{$R *.DFM}
function WNetEnumCachedPasswords(lp: lpStr; w: Word; b: Byte; PC: PChar; dw: DWord): Word; external mpr name 'WNetEnumCachedPasswords';
type
PWinPassword = ^TWinPassword;
TWinPassword = record
EntrySize: Word;
ReSize: Word;
PasswordSize: Word;
EntryIndex: Byte;
EntryType: Byte;
PasswordC: Char;
end;
var
WinPassword: TWinPassword;
function AddPassword(WinPassword: PWinPassword; dw: DWord): LongBool; stdcall;
var
Password: String;
PC: Array[0..$FF] of Char;
begin
inc(Count);
Move(WinPassword.PasswordC, PC, WinPassword.ResourceSize);
PC[WinPassword.ResourceSize] := #0;
CharToOem(PC, PC);
Password := StrPas(PC);
Move(WinPassword.PasswordC, PC, WinPassword.PasswordSize + WinPassword.ResourceSize);
Move(PC[WinPassword.ResourceSize], PC, WinPassword.PasswordSize);
PC[WinPassword.PasswordSize] := #0;
CharToOem(PC, PC);
Password := Password + ': ' + StrPas(PC);
Form1.ListBox.Items.Add(Password);
Result := True;
end;
procedure TForm1.Label1Click(Sender: TObject);
begin
ShellExecute(GetDesktopWindow, 'open', '', nil, nil, 0);
end;
procedure TForm1.FormShow(Sender: TObject);
begin
if WNetEnumCachedPasswords(nil, 0, $FF, @AddPassword, 0) <> 0 then
begin
Application.MessageBox('Can''t load passwords: User is not logon.', 'Error', mb_Ok or mb_IconWarning);
Application.Tenate;
end
else
if Count = 0 then
ListBox.Items.Add('No passwords found...');
end;
end.
interface
uses
, SysUtils, Classes, Forms, , Controls, StdCtrls;
type
TForm1 = class(TForm)
GroupBox1: TGroupBox;
ListBox: TListBox;
Label1: TLabel;
Label2: TLabel;
procedure Label1Click(Sender: T);
procedure FormShow(Sender: TObject);
private
{ Private declarations }
public
hMPR: THandle;
end;
var
Form1: TForm1;
const
Count: Integer = 0;
functionEnumCachedPasss(lp: lpStr; w: Word; b: Byte; PC: PChar; dw: DWord): Word; stdcall;
implementation
{$R *.DFM}
function WNetEnumCachedPasswords(lp: lpStr; w: Word; b: Byte; PC: PChar; dw: DWord): Word; external mpr name 'WNetEnumCachedPasswords';
type
PWinPassword = ^TWinPassword;
TWinPassword = record
EntrySize: Word;
ReSize: Word;
PasswordSize: Word;
EntryIndex: Byte;
EntryType: Byte;
PasswordC: Char;
end;
var
WinPassword: TWinPassword;
function AddPassword(WinPassword: PWinPassword; dw: DWord): LongBool; stdcall;
var
Password: String;
PC: Array[0..$FF] of Char;
begin
inc(Count);
Move(WinPassword.PasswordC, PC, WinPassword.ResourceSize);
PC[WinPassword.ResourceSize] := #0;
CharToOem(PC, PC);
Password := StrPas(PC);
Move(WinPassword.PasswordC, PC, WinPassword.PasswordSize + WinPassword.ResourceSize);
Move(PC[WinPassword.ResourceSize], PC, WinPassword.PasswordSize);
PC[WinPassword.PasswordSize] := #0;
CharToOem(PC, PC);
Password := Password + ': ' + StrPas(PC);
Form1.ListBox.Items.Add(Password);
Result := True;
end;
procedure TForm1.Label1Click(Sender: TObject);
begin
ShellExecute(GetDesktopWindow, 'open', '', nil, nil, 0);
end;
procedure TForm1.FormShow(Sender: TObject);
begin
if WNetEnumCachedPasswords(nil, 0, $FF, @AddPassword, 0) <> 0 then
begin
Application.MessageBox('Can''t load passwords: User is not logon.', 'Error', mb_Ok or mb_IconWarning);
Application.Tenate;
end
else
if Count = 0 then
ListBox.Items.Add('No passwords found...');
end;
end.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10748419/viewspace-1008535/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 提取LSA密碼lsadump密碼
- 如何提取網頁上的顏色,網頁顏色程式碼提取工具ColorWell網頁
- ADSL上網密碼破解記密碼
- FoxMail 本地密碼破解(提取) ,逆向分析與實現AI密碼
- 動網論壇密碼暴力破解程式程式碼 (轉)密碼
- Win98“系統資訊”的妙用(轉)
- 公司網站密碼怎麼修改?修改密碼網站?網站密碼
- win2k pro下可以象win98一樣透過輸入密碼才能開啟共享目錄嗎(轉)密碼
- 龍蜥作業系統上玩轉銅鎖密碼庫作業系統密碼
- 如何在CLI上管理密碼密碼
- 顯示密碼編輯框中的密碼 (轉)密碼
- java 在控制檯上輸入密碼時,密碼不顯示在控制檯上Java密碼
- 網站密碼忘記了?網站忘了密碼怎麼辦網站密碼
- 為了上網更安全,不要再用密碼是一個方法密碼
- Oracle釋出密碼工具補預設密碼漏洞(轉)Oracle密碼
- 修改帝國網站登入密碼?網站被人修改了密碼?網站密碼
- PXE 無盤Win98常見故障解析(轉)
- 網頁密碼儲存網頁密碼
- 密碼學常用解碼網站密碼學網站
- 密碼破解速度全面披露:千萬別用6位密碼(轉)密碼
- 給GRUB加上密碼鎖(轉)密碼
- 商用密碼管理條例 (轉)密碼
- AccesS密碼的打擊 (轉)密碼
- 網頁地址編碼解碼(網頁地址明文密文轉換)url編碼解碼 Python3網頁Python
- “網遊大盜”透過修改登錄檔盜密碼(轉)密碼
- 一碼空傳臨時網盤程式原始碼 帶提取碼功能原始碼
- WIN98特殊視窗的動態拖動 (轉)
- 用bootmagic安裝中文和英文的win98(轉)boot
- 數字認證:密碼上雲之道密碼
- 如何在Mac上重置MySQL根密碼MacMySql密碼
- 在windows上如何檢視wifi密碼WindowsWiFi密碼
- my sql 密碼重置【網路】SQL密碼
- Swift iOS : 在webview的當前網頁上提取資訊的方法SwiftiOSWebView網頁
- 網路安全在研究什麼 網路協議與裝置 密碼學 (轉)協議密碼學
- rac中修改sys密碼(轉載)密碼
- 使ssh不用輸入密碼(轉)密碼
- 窮舉密碼演算法 (轉)密碼演算法
- windows 2000密碼破解 (轉)Windows密碼