欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

再談遠(yuǎn)程控制linux下

 更新時間:2006年10月24日 00:00:00   作者:  

一直以來我都是在windows平臺下,用ssh和vnc來遠(yuǎn)程控制linux肉雞來實現(xiàn)nt和*inux多系統(tǒng)環(huán)境的工作。這個具體實現(xiàn)網(wǎng)絡(luò)上教程已經(jīng)很多,我想沒有必要再詳細(xì)的說明拉。 
      但是最近因為實在是厭惡微軟推出所謂的2003,而且據(jù)說總總限制,使得我無法在有勇氣在我的機(jī)器里面保留NT,呵呵其實由于我的機(jī)器低配置,實在難以接受多系統(tǒng)的強大壓力,所以就刪除拉NT,(牙牙的,大堆廢話)  呵呵,本來就是原理嗎,所以灌灌水。 
     好了,現(xiàn)在我們進(jìn)入正題,作為最強大的遠(yuǎn)程控制軟件VNC,當(dāng)然是我們的首選(據(jù)說還有個可以在LINUX下控制3389的,我沒有用過,不知道性能)。當(dāng)然還有一個程序WINE可以提供WINDOWS程序的環(huán)境,但是很多朋友都說速度慢的象大便。。哈哈,但是還是介紹一下拉。至少可以用它來玩微軟紙牌氣死BILL。。嘻 

  下面是我的安裝步驟: 
安裝前的準(zhǔn)備 
把原先的wine卸載掉.rh7.3有wine和wine-devel兩個文件,先卸載掉第二個,然后再卸載第一個,如果你更好的想玩游戲,把OPENGL也升級一下,freetype不用升級了,rh7.3自帶的就可以滿足漢字的支持了 
把你的C盤掛接在linux下 
建立目錄來掛接 
c盤 
mkdir /winc 
掛接C盤 
mount /dev/hda1 /winc 

下載wine的最新版到/wind 
http://www.winehq.com上邊有它的最新版 
wine-20020804.tar.gz 
以普通用戶登錄linux,把wine-20020804.tar.gz拷貝到/tmp目錄下 
進(jìn)入/tmp目錄 
shell>cd /tmp 
解壓wine 
shell>tar vfzx wine-20020804.tar.gz 
進(jìn)入解壓后的目錄 
shell>cd wine-20020804 
用wine的安裝工具進(jìn)行安裝 
shell>./tools/wineinstall 
然后就是漫長的等待, 
在安裝過程中它要你回答yes/no,你選擇yes就可以了 
wine自動搜索windows的目錄的,等你你編譯完了,它要讓你輸入root的密碼進(jìn)入安裝 
這是就快安裝完了,如果安裝成功,就會有g(shù)ood lucky的提示 
在shell下運行wine,第一次運行不成攻,這是正常,因為沒有在/root/.wine/config文件里配置好.找到這些把 
[Drive C] 
"Path" = "/usr/share/win_c" 
"Type" = "hd" 
"Label" = "MS-DOS" 
"Filesystem" = "win95" 
改為:[Drive C] 
"Path" = "/winc" 
"Type" = "hd" 
"Label" = "MS-DOS" 
"Filesystem" = "win95" 
就可以了,如果你安裝了simsun字體.wine默認(rèn)就會找到這個字體的 
下邊就是我的/root/.wine/config 
WINE REGISTRY Version 2 
;; All keys relative to \\Machine\\Software\\Wine\\Wine\\Config 

;; 
;; MS-DOS drives configuration 

;; Each section has the following format: 
;; [Drive X] 
;; "Path"="xxx" (Unix path for drive root) 
;; "Type"="xxx" (supported types are ‘floppy‘, ‘hd‘, ‘cdrom‘ and ‘network‘) 
;; "Label"="xxx" (drive label, at most 11 characters) 
;; "Serial"="xxx" (serial number, 8 characters hexadecimal number) 
;; "Filesystem"="xxx" (supported types are ‘msdos‘/‘dos‘/‘fat‘, ‘win95‘/‘vfat‘, ‘unix‘) 
;; This is the FS Wine is supposed to emulate on a certain 
;; directory structure. 
;; Recommended: 
;; - "win95" for ext2fs, VFAT and FAT32 
;; - "msdos" for FAT16 (ugly, upgrading to VFAT driver strongly recommended) 
;; DON‘T use "unix" unless you intend to port programs using Winelib ! 
;; "Device"="/dev/xx" (only if you want to allow raw device access) 

[Drive A] 
"Path" = "/mnt/floppy" 
"Type" = "floppy" 
"Label" = "Floppy" 
"Serial" = "87654321" 
"Device" = "/dev/fd0" 

[Drive C] 
"Path" = "/winc" 
"Type" = "hd" 
"Label" = "MS-DOS" 
"Filesystem" = "win95" 

[Drive D] 
"Path" = "/mnt/cdrom" 
"Type" = "cdrom" 
"Label" = "CD-Rom" 
"Filesystem" = "win95" 
; make sure that device is correct and has proper permissions ! 
"Device" = "/dev/cdrom" 

[Drive E] 
"Path" = "/tmp" 
"Type" = "hd" 
"Label" = "Tmp Drive" 
"Filesystem" = "win95" 

[Drive F] 
"Path" = "${HOME}" 
"Type" = "network" 
"Label" = "Home" 
"Filesystem" = "win95" 

[Drive Z] 
"Path" = "/" 
"Type" = "network" 
"Label" = "Root" 
"Filesystem" = "win95" 

[wine] 
"Windows" = "c:\\windows" 
"System" = "c:\\windows\\system" 
"Temp" = "e:\\" 
"Path" = "c:\\windows;c:\\windows\\system;e:\\;e:\\test;f:\\" 
"Profile" = "c:\\windows\\Profiles\\Administrator" 
"GraphicsDriver" = "x11drv" 
; Wine doesn‘t pass directory symlinks to Windows programs by default. 
; Enabling this may crash some programs that do recursive lookups of a whole 
; subdir tree in case of a symlink pointing back to itself. 
;"ShowDirSymlinks" = "1" 
"ShellLinker" = "wineshelllink" 

# <wineconf> 

[DllDefaults] 
; "EXTRA_LD_LIBRARY_PATH" = "${HOME}/wine/cvs/lib" 
"DefaultLoadOrder" = "native, builtin, so" 

[DllOverrides] 
"commdlg" = "builtin, native" 
"comdlg32" = "builtin, native" 
"ver" = "builtin, native" 
"version" = "builtin, native" 
"shell" = "builtin, native" 
"shell32" = "builtin, native" 
"lzexpand" = "builtin, native" 
"lz32" = "builtin, native" 
"comctl32" = "builtin, native" 
"commctrl" = "builtin, native" 
"wsock32" = "builtin" 
"winsock" = "builtin" 
"advapi32" = "builtin, native" 
"crtdll" = "builtin, native" 
"mpr" = "builtin, native" 
"winspool.drv" = "builtin, native" 
"ddraw" = "builtin, native" 
"dinput" = "builtin, native" 
"dsound" = "builtin, native" 
"mmsystem" = "builtin" 
"winmm" = "builtin" 
"msvcrt" = "native, builtin" 
"msvideo" = "builtin, native" 
"msvfw32" = "builtin, native" 
"mcicda.drv" = "builtin, native" 
"mciseq.drv" = "builtin, native" 
"mciwave.drv" = "builtin, native" 
"mciavi.drv" = "native, builtin" 
"mcianim.drv" = "native, builtin" 
"msacm.drv" = "builtin, native" 
"msacm" = "builtin, native" 
"msacm32" = "builtin, native" 
"midimap.drv" = "builtin, native" 
"wnaspi32" = "builtin" 
"icmp" = "builtin" 

[x11drv] 
; Number of colors to allocate from the system palette 
"AllocSystemColors" = "100" 
; Use a private color map 
"PrivateColorMap" = "N" 
; Favor correctness over speed in some graphics operations 
"PerfectGraphics" = "N" 
; Color depth to use on multi-depth screens 
;;"ScreenDepth" = "16" 
; Name of X11 display to use 
;;"Display" = ":0.0" 
; Allow the window manager to manage created windows 
"Managed" = "N" 
; Use a desktop window of 640x480 for Wine 
;"Desktop" = "640x480" 
; Use XFree86 DGA extension if present 
"UseDGA" = "Y" 
; Use XShm extension if present 
"UseXShm" = "Y" 
; Enable DirectX mouse grab 
"DXGrab" = "N" 
; Create the desktop window with a double-buffered visual 
; (useful to play OpenGL games) 
"DesktopDoubleBuffered" = "N" 
; Code page used for captions in managed mode 
; 0 means default ANSI code page (CP_ACP == 0) 
"TextCP" = "0" 
; Use this if you have more than one port for video on your setup 
; (Wine uses for now the first ‘input image‘ it finds). 
;; "XVideoPort" = "43" 

[fonts] 
;Read documentation/fonts before adding aliases 
"Resolution" = "96" 
"Default" = "-misc-simsun-" 

[serialports] 
"Com1" = "/dev/ttyS0" 
"Com2" = "/dev/ttyS1" 
"Com3" = "/dev/ttyS2" 
"Com4" = "/dev/modem" 

[parallelports] 
"Lpt1" = "/dev/lp0" 

[spooler] 
"LPT1:" = "|lpr" 
;"LPT2:" = "|gs -sDEVICE=bj200 -sOutputFile=/tmp/fred -q -" 
;"LPT3:" = "/dev/lp3" 

[ports] 
;"read" = "0x779,0x379,0x280-0x2a0" 
; "write" = "0x779,0x379,0x280-0x2a0" 

[spy] 
"Exclude" = "WM_SIZE;WM_TIMER;" 

[registry] 
;These are all booleans. Y/y/T/t/1 are true, N/n/F/f/0 are false. 
;Defaults are read all, write to Home 
; Global registries (stored in /etc) 
"LoadGlobalRegistryFiles" = "Y" 
; Home registries (stored in ~user/.wine/) 
"LoadHomeRegistryFiles" = "Y" 
; Load Windows registries from the Windows directory 
"LoadWindowsRegistryFiles" = "Y" 
; TRY to write all changes to home registries 
"WritetoHomeRegistryFiles" = "Y" 
; Registry periodic save timeout in seconds 
; "PeriodicSave" = "600" 
; Save only modified keys 
"SaveOnlyUpdatedKeys" = "Y" 

[Tweak.Layout] 
;; supported styles are ‘Win31‘(default), ‘Win95‘, ‘Win98‘ 
"WineLook" = "Win98" 

[Console] 
;"Drivers" = "tty" 
;"XtermProg" = "nxterm" 
;"InitialRows" = "25" 
;"InitialColumns" = "80" 
;"TerminalType" = "nxterm" 

[Clipboard] 
"ClearAllSelections" = "0" 
"PersistentSelection" = "1" 

# </wineconf> 
   可惜支持的速度很慢,我也就沒用它來實驗運行終端,大家有興趣可以測試看看。 
................................................................................................................................... 
  想想還是用VNC吧,呵呵,是的確實這個軟件好啊。。。我于是在虛擬終端上運行了一下VNC,發(fā)現(xiàn)問題來拉,就是大都SERVER版本加了CTL +ALT+DEL的保護(hù),換句話說就是在終端下運行VNCSERVER更本進(jìn)不去,只能干看的份,很多人或許此時都快放棄拉心想還是去NT下用LINUX的肉雞容易,其實不然,根據(jù)在NT下以前使用的經(jīng)驗來看,在支持JAVA的瀏覽器下運行的VNC好象可以發(fā)送 CTL +ALT+DEL命令,呵呵大家肯定和我一樣開始準(zhǔn)備笑拉,可是用我的MOZILLA一打開才知道,大都默認(rèn)安裝的不支持JAVA,聽說好象是迫與微軟的強大壓力。。。 

  現(xiàn)在的問題很明顯那就是安裝JAVA的插件。呵呵跟我來吧: 

  下載地址:http://java.sun.com 
我下載的是較新的版本,后綴為bin的文件,文件名為: 
j2sdk-1_4_0-linux-i386-rpm.bin 
安裝過程: 
將該文件拷貝到/tmp目錄下 
----//注:cp j2sdk-1_4_0-linux-i386-rpm.bin /tmp 
然后執(zhí)行該文件 
----//注: ./j2sdk-1_4_0-linux-i386-rpm.bin 
----//注 注意/前面有個點"." 
會出現(xiàn)一些信息顯示,先按空格跳過信息顯示到詢問你同 
意否?按Y,然后回車確定就可以了,這樣會生成一個rpm文 
件在當(dāng)前目錄下 
運行rpm文件 
----//注:rpm -Uivh j2sdk-1_4_0-fcs-linux-i386.rpm 

[設(shè)置JAVA環(huán)境變量] 
用Advanced Editor編輯profile文件 
----//注:該文件在/etc目錄下 
在最后面加入如下內(nèi)容: 
export PATH=/usr/java/j2sdk1.4.0/bin:$PATH 

export CLASSPATH=.:/usr/java/j2sdk1.4.0/lib/tools.jar:/usr/java/j2sdk1.4.0/lib:$CLASSPATH 

存盤退出(不同版本的路徑會有所不同,請根據(jù)自己實際 
情況更改) 
然后要讓他生效,在命令行中敲打如下命令 
----//注:source /etc/profile 
如果希望其他用戶可以使用java,用其他用戶帳號登錄, 
然后在命令行下敲打如上的命令 
----//注:source /etc/profile 

這些工作做完后用如下命令測試一下 
----//注:which java(顯示出來相關(guān)信息就可以了) 

[瀏覽器支持JAVA問題] 
前提是你已經(jīng)安裝了javaVM,并且配置好了環(huán)境變量 

在Konqueror Webbrowsing中: 
JAVA設(shè)置:在control center(控制中心) > web browsing(頁面瀏覽), 
點擊konqueror browser(konqueror瀏覽器),在JAVA選項卡 
中"全局啟用JAVA"打上勾,然后應(yīng)用退出. 


在Mozilla Webbrowsing中: 
進(jìn)入mozilla的plugin目錄下,將JRE的的一個插件文 
件鏈接到mozilla的plugin目錄下 
(官方站點上的文章說絕對不能拷貝這個文件到該目錄 
下,只能鏈接,以前我就是在這點上犯了錯誤,所以怎么 
做都是退出瀏覽器,切記!!) 
----//注:在命令行下(root權(quán)限), 
----//注:cd /usr/share/mozilla/plugins 
----//注:ln -s /usr/java/j2sdk1.4.0/jre/plugins/i386/ns610/libjavaplugin_oji14.so libjavaplugin_oji14.so 

(這兒的命令給個參考,你自己根據(jù)實際情況修改,修改你用插件版本) 

現(xiàn)在從新打開新的窗口,在http://ip:5800,看看,OK,出來拉看到拉久違的那個CTL +ALT+DEL按鍵,好拉下面的就是隱藏圖表,進(jìn)程的問題,圖表可以修改注冊表,進(jìn)程 
可以用一些注入進(jìn)程等技術(shù),具體自己去搜索一下,很多的。 

  最后強調(diào)的一點:之所以在linux下還要玩nt(很多自由軟件的愛好者肯定會拿板轉(zhuǎn)仍我),因為作為一個合格的blackhat,必須精通所有的平臺的入侵技術(shù),所以必須NT平臺,作為滲透測試,漏洞測試,都需要這樣的多平臺。但是大家別沉迷與控制別人技術(shù)本身,這個是很容易實現(xiàn)的。。。。更加注重的是你真么樣來達(dá)到有可能去控制,呵呵有點饒口。

相關(guān)文章

最新評論