메뉴 닫기

ubuntu 16.04에 winexe 테스트

리눅스에서 윈도우 서버를 제어할때 사용하기 좋은 프로그램이 있습니다.

프로그램은 winexe 이며 데비안, 레드렛 계열에서 설치할수 있으며 설치도 그리 어렵지 않습니다.

ubuntu 16.04에서 패키지  설치후 윈도우 서버에 명령을 보내보고 응답이 오는지 확인해보겠습니다.

 

패키지 다운로드


root@dicaniu-8673:~# wget http://download.opensuse.org/repositories/home:/uibmz:/opsi:/opsi40-testing/Univention_4.0/amd64/winexe_1.00.1-1_amd64.deb
--2017-09-29 13:08:38--  http://download.opensuse.org/repositories/home:/uibmz:/opsi:/opsi40-testing/Univention_4.0/amd64/winexe_1.00.1-1_amd64.deb
Resolving download.opensuse.org (download.opensuse.org)... 195.135.221.134, 2001:67c:2178:8::13
Connecting to download.opensuse.org (download.opensuse.org)|195.135.221.134|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://ftp.yzu.edu.tw/Linux/openSUSE/repositories/home:/uibmz:/opsi:/opsi40-testing/Univention_4.0/amd64/winexe_1.00.1-1_amd64.deb [following]
--2017-09-29 13:08:38--  http://ftp.yzu.edu.tw/Linux/openSUSE/repositories/home:/uibmz:/opsi:/opsi40-testing/Univention_4.0/amd64/winexe_1.00.1-1_amd64.deb
Resolving ftp.yzu.edu.tw (ftp.yzu.edu.tw)... 140.138.144.170
Connecting to ftp.yzu.edu.tw (ftp.yzu.edu.tw)|140.138.144.170|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2534948 (2.4M) [application/octet-stream]
Saving to: ‘winexe_1.00.1-1_amd64.deb’

winexe_1.00.1-1_amd64.deb  100%[=====================================>]   2.42M  4.00MB/s    in 0.6s    

2017-09-29 13:08:39 (4.00 MB/s) - ‘winexe_1.00.1-1_amd64.deb’ saved [2534948/2534948]

패키지 설치


root@dicaniu-8673:~# dpkg --install winexe_1.00.1-1_amd64.deb
Selecting previously unselected package winexe.
(Reading database ... 109552 files and directories currently installed.)
Preparing to unpack winexe_1.00.1-1_amd64.deb ...
Unpacking winexe (1.00.1-1) ...
Setting up winexe (1.00.1-1) ...

확인


root@dicaniu-8673:~# winexe -U administrator --password={패스워드} //172.16.0.96 "netstat -an" | grep LIST
  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    0.0.0.0:3389           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:5985           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:5986           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:47001          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:49152          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:49153          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:49154          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:49155          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:49156          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:49157          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:49162          0.0.0.0:0              LISTENING
  TCP    172.16.0.96:139        0.0.0.0:0              LISTENING
  TCP    [::]:135               [::]:0                 LISTENING
  TCP    [::]:445               [::]:0                 LISTENING
  TCP    [::]:3389              [::]:0                 LISTENING
  TCP    [::]:5985              [::]:0                 LISTENING
  TCP    [::]:5986              [::]:0                 LISTENING
  TCP    [::]:47001             [::]:0                 LISTENING
  TCP    [::]:49152             [::]:0                 LISTENING
  TCP    [::]:49153             [::]:0                 LISTENING
  TCP    [::]:49154             [::]:0                 LISTENING
  TCP    [::]:49155             [::]:0                 LISTENING
  TCP    [::]:49156             [::]:0                 LISTENING
  TCP    [::]:49157             [::]:0                 LISTENING
  TCP    [::]:49162             [::]:0                 LISTENING

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x