sudo yum install proxychains
2. install WINEXE
winexe for linux - opensuse
3. put the ip and port for proxy server
[gustavo@dhcp-localhost socks]$ sudo cat /etc/proxychains.conf
[sudo] password for gustavo:
...
[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
#socks4 127.0.0.1 9050
socks5 xxx.xxx.xxx.xxx 1080
socks5 xxx.xxx.xxx.xxx 1080
[gustavo@dhcp-9-8-233-237 socks]$
4. run the comands and check de output
[gustavo@dhcp-localhost socks]$ proxychains winexe -U 'domain/usuario%senha' //xxx.xxx.xxx.xxx 'cmd.exe /c ipconfig'
ProxyChains-3.1 (http://proxychains.sf.net)
Unknown parameter encountered: "max log size"
Ignoring unknown parameter "max log size"
Unknown parameter encountered: "passdb backend"
Ignoring unknown parameter "passdb backend"
Unknown parameter encountered: "load printers"
Ignoring unknown parameter "load printers"
Unknown parameter encountered: "cups options"
Ignoring unknown parameter "cups options"
Unknown parameter encountered: "writable"
Ignoring unknown parameter "writable"
Unknown parameter encountered: "guest ok"
Ignoring unknown parameter "guest ok"
Unknown parameter encountered: "writable"
Ignoring unknown parameter "writable"
|S-chain|-<>-xxx.xxx.xxx.xxx:1080-<>-xxx.xxx.xxx.xxx:1080-<><>-xxx.xxx.xxx.xxx:445-<><>-OK
Windows IP Configuration
Ethernet adapter Production:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : xxx.xxx.xxx.xxx
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : xxx.xxx.xxx.xxx
Ethernet adapter Backup:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : xxx.xxx.xxx.xxx
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
[gustavo@dhcp-localhost socks]$