¸®´ª½º¿¡¼ À©µµ¿ì¿¡ ¸í·ÉÀ» Àü´ÞÇÏ¿© »ç¿ëÇÏ°í ½ÍÀ»¶§ À¯¿ëÇÑ ÅøÀÌ´Ù.
¿ø¹®¿¡¼´Â À©µµ¿ì 2008 Áö¿ø¿©ºÎ¿¡ ´ëÇؼ ³ª¿ÍÀÖÁö ¾Ê¾ÒÀ¸³ª ÀߵȴÙ...
¿øº» »çÀÌÆ®´Â ´ÙÀ½°ú °°´Ù.
http://eol.ovh.org/winexe/
winexe remotely executes commands on WindowsNT/2000/XP/2003 systems from GNU/Linux (probably also other Unices capable to compile Samba4).
Requirements
- Linux/Unix side:
- Working network
- Samba is NOT neccessary
- Windows side:
- Working network
- Standard Windows installation with enabled remote sharing and administration (Windows XP Home do not support remote administration). What does it mean exactly:
- Enabled services: Workstation, Server
- "Windows Network" is running and "Printer and File Sharing" are activated
- Enabled "Remote IPC" and "Remote Admin" shares. To verify it, in cmd box run command "net share", and check if there are ADMIN$ and IPC$ shares. In Windows XP to enable it you should turn off "Simple sharing" in "Control Panel\Folder Options\View\Use simple file sharing".
- Account with administrative privileges and not empty password
- Firewall rules allowing traffic between both machines
Compile from sources
INSTALL
[root@mojily src]# wget
http://eol.ovh.org/winexe/winexe-source-081123.tar.bz2--20:58:03--
http://eol.ovh.org/winexe/winexe-source-081123.tar.bz2Resolving eol.ovh.org... 213.251.131.44
Connecting to eol.ovh.org|213.251.131.44|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3000344 (2.9M) [application/x-bzip2]
Saving to: `winexe-source-081123.tar.bz2'
100%[==========================================================>] 3,000,344 54.8K/s in 38s
20:58:42 (77.0 KB/s) - `winexe-source-081123.tar.bz2' saved [3000344/3000344]
¾ÐÃàÇ®°í ÄÄÆÄÀÏ
[root@mojily winexe-source-081123]# tar jxvf winexe-source-081123.tar.bz2
[root@mojily src]# cd winexe-source-081123
[root@mojily winexe-source-081123]# ./autogen.sh
./autogen.sh: running script/mkversion.sh
./script/mkversion.sh: 'version.h' created for Samba("4.0.0tp4-SVN-build-UNKNOWN")
./autogen.sh: running autoheader -I. -Ilib/replace
./autogen.sh: running autoconf -I. -Ilib/replace
Now run ./configure and then make.
[root@mojily winexe-source-081123]#./configure
[root@mojily winexe-source-081123]#make proto bin/winexe
¼³Ä¡´Â ¿Ï·áµÇ¾ú°í.....ÀÌÁ¦´Â Ä¿¸Çµå·Î ¸í·É¾î°¡ Àü´ÞµÇ´ÂÁö È®ÀÎÇغ»´Ù...
³» °¡»óȼ¹ö À©µµ¿ì 2008·ÎÀÇ IPCONFIG Ä¿¸Çµå Àü´Þ!!
[root@localhost bin]# pwd
/usr/local/src/winexe-source-081123/bin
[root@localhost bin]# ./winexe -U Administrator //115.68.27.77 "ipconfig"
Password for [WORKGROUP\Administrator]:
Windows IP ±¸¼º
ÀÌ´õ³Ý ¾î´ðÅÍ ·ÎÄà ¿µ¿ª ¿¬°á 3:
¿¬°áº° DNS Á¢¹Ì»ç. . . . :
IPv4 ÁÖ¼Ò . . . . . . . . . : 115.68.27.77
¼ºê³Ý ¸¶½ºÅ© . . . . . . . : 255.255.255.0
±âº» °ÔÀÌÆ®¿þÀÌ . . . . . . : 115.68.27.1
ÅͳΠ¾î´ðÅÍ ·ÎÄà ¿µ¿ª ¿¬°á*:
¹Ìµð¾î »óÅ . . . . . . . . : ¹Ìµð¾î ¿¬°á ²÷±è
¿¬°áº° DNS Á¢¹Ì»ç. . . . :
ÅͳΠ¾î´ðÅÍ ·ÎÄà ¿µ¿ª ¿¬°á* 8:
¿¬°áº° DNS Á¢¹Ì»ç. . . . :
IPv6 ÁÖ¼Ò . . . . . . . . . : 2002:7344:1b4d::7344:1b4d
±âº» °ÔÀÌÆ®¿þÀÌ . . . . . . : 2002:c058:6301::c058:6301
ÅͳΠ¾î´ðÅÍ ·ÎÄà ¿µ¿ª ¿¬°á* 9:
¹Ìµð¾î »óÅ . . . . . . . . : ¹Ìµð¾î ¿¬°á ²÷±è
¿¬°áº° DNS Á¢¹Ì»ç. . . . :
[root@localhost bin]# ./winexe -U Administrator //115.68.27.77 "netstat -an"
Password for [WORKGROUP\Administrator]:
È°¼º ¿¬°á
ÇÁ·ÎÅäÄÝ ·ÎÄà ÁÖ¼Ò ¿ÜºÎ ÁÖ¼Ò »óÅÂ
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
TCP 115.68.27.77:445 115.68.62.38:41048 ESTABLISHED
TCP 115.68.27.77:3389 218.236.115.201:9123 ESTABLISHED
TCP 115.68.27.77:50645 66.55.144.238:5512 ESTABLISHED
TCP 115.68.27.77:50646 66.55.144.231:53683 ESTABLISHED
TCP [::]:7 [::]:0 LISTENING
TCP [::]:9 [::]:0 LISTENING
TCP [::]:13 [::]:0 LISTENING
.....................................................................