呼叫Windows核心命令

2021-07-30 04:36:11 字數 1792 閱讀 3049

對程式設計師而言,有一句至理名言就是:「寫得好就是寫得少!(writing better is writing less)」。

以下命令可以直接在windows的執行視窗直接執行,在delphi中你要這樣使用:

winexec(pchar('abcd'),sw_show);

其中"abcd"代表以下命令之一:

[@more@]

"rundll32 shell32,control_rundll" - 執行控制面板

"rundll32 shell32,openas_rundll" - 開啟"開啟方式"視窗

"rundll32 shell32,shellabouta info-box" - 開啟"關於"視窗

"rundll32 shell32,control_rundll desk.cpl" - 開啟"顯示屬性"視窗

"rundll32 user,cascadechildwindows" - 層疊全部視窗

"rundll32 user,tilechildwindows" - 最小化所有的子視窗

"rundll32 user,repaintscreen" - 重新整理桌面

"rundll32 shell,shellexecute explorer" - 重新執行windows explorer

"rundll32 keyboard,disable" - 鎖寫鍵盤

"rundll32 mouse,disable" - 讓滑鼠失效

"rundll32 user,swapmousebutton" - 交換滑鼠按鈕

"rundll32 user,setcursorpos" - 設定滑鼠位置為(0,0)

"rundll32 user,wnetconnectdialog" - 開啟"對映網路驅動器"視窗

"rundll32 user,wnetdisconnectdialog" - 開啟"斷開網路驅動器"視窗

"rundll32 user,disableoemlayer" - 顯示bsod視窗, (bsod) = blue screen of death, 即藍屏

"rundll32 diskcopy,diskcopyrundll" - 開啟磁碟複製視窗

"rundll32 rnaui.dll,rnawizard" - 執行"internet連線嚮導", 如果加上引數"/1"則為silent模式

"rundll32 shell32,shformatdrive" - 開啟"格式化磁碟(a)"視窗

"rundll32 shell32,shexitwindow*** -1" - 冷啟動windows explorer

"rundll32 shell32,shexitwindow*** 1" - 關機

"rundll32 shell32,shexitwindow*** 0" - 退當前使用者

"rundll32 shell32,shexitwindow*** 2" windows9x 快速重啟

"rundll32 krnl386.exe,exitkernel" - 強行退出windows 9x(無確認)

"rundll rnaui.dll,rnadial "myconnect" - 執行"網路連線"對話方塊

"rundll32 msprint2.dll,rundll_printtestpage" - 選擇印表機和列印測試頁

"rundll32 user,setcaretblinktime" - 設定游標閃爍速度

"rundll32 user, setdoubleclicktime" - 測試滑鼠雙擊速度

"rundll32 sysdm.cpl,installdevice_rundll" - 搜尋非pnp裝置

C 呼叫windows系統cmd命令

process p new process 設定要啟動的應用程式 p.startinfo.filename cmd.exe 是否使用作業系統shell啟動 p.startinfo.useshellexecute false 接受來自呼叫程式的輸入資訊 p.startinfo.redirectstan...

Windows核心 (7)呼叫門提權 無參

對呼叫門的呼叫可以訪問與當前 特權相同或者特權更高的 段中的過程。指令格式 call cs eip eip是廢棄的 執行步驟 根據cs的值 查gdt表,找到對應的段描述符 這個描述符是乙個呼叫門.在呼叫門描述符中儲存另乙個 段段的選擇子.選擇子指向的段 段.base 偏移位址 就是真正要執行的位址....

Java呼叫Windows控制台命令

方法一 public static void main string args inputstream ins null string cmd new string tryprocess process runtime.getruntime exec cmd cmd 的資訊 ins process....