Hope this is not a duplicate .. started previously and post suddenly disappeared
CONFIG: imacros browser 10.0.2, IE11, Windows 7
Preamble: trying to find (my) best way to use a socks5 service I subscribed to with imacros
Testing: tried various tools like privoxy and pipolio (among others) but each lacked something useful(for me)
Basic Code: using the cmd shell I found this very workable (Socks5 listed is a public IP for my test)
Code: Select all
I:\public_html>curl -x, --proxy SOCKS5://66.239.62.153:10323 geoip.hidemyass.com:80
Code: Select all
<html>
<head>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>[b]162.243.163.141[/b]</title>
<img src="http://aws.hidemyass.com/flags_iso/128/us.png" align=absmiddle> [b]162.24
3.163.141[/b][b][/b]</span>
<table>
<tr>
<td>ISP:</td>
<td>Digital Ocean</td>
</tr>
<tr>
<td>Country:</td>
<td><img src="http://aws.hidemyass.com/flags_iso/16/us.png" align=absmiddle>[b]Unit
ed States[/b]</td>
</tr>
<tr>
<td>State/Region:</td>
<td>[b]NY[/b]</td>
</tr><tr>
<td>City:</td>
<td>[b]New York[/b]</td>
</tr><tr>
<td>Postal code:</td>
<td>[b]10118[/b]</td>
</tr><tr>
<td>Area code:</td>
<td>[b]212[/b]</td>
</tr></table>
</div>
Code: Select all
SET !VAR1 EVAL (var x = ("I:\\public_html\\cmd.exe"; "curl -x, --proxy SOCKS5://66.239.62.153:10323 geoip.hidemyass.com:80"); x;)
'if needed >>
URL GOTO= {{!VAR1}}
Jonny
ps NO guarantee that the public SOCKS5 will continue to work: Ill test out all suggestions myself
UPDATE:
I tried the demo code here: http://wiki.imacros.net/URL#Using_Javascript
Code: Select all
URL GOTO=http://www.iopus.com
URL GOTO=javascript:openDemo('shared/flash/imacros1',820,650);
TAB T=2
'testsocks5.iim
Code: Select all
VERSION BUILD=10022823
TAB T=1
TAB CLOSEALLOTHERS
SET !ENCRYPTION NO
CLEAR
SET !ERRORIGNORE NO
SET !EXTRACT_TEST_POPUP NO
URL GOTO=google.ca
URL GOTO=bing.com
' -------------------start = no syntax errors reported -----the 5 code samples that didnt have syntax problems------
Code: Select all
PROXY ADDRESS=curl,<SP>-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port;<SP>example.com;
'PROXY ADDRESS=curl,<SP>-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port,<SP>example.com;
'PROXY ADDRESS=curl,<SP>-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port<SP>example.com;
' (does not go to example.com)
returns PROMPT is empty
&& then(instead of example.com) I have "The proxy server isn’t responding •Check your proxy settings curl(-x:80. Go to Tools > Internet Options > Connections. If you are on a LAN, click “LAN settings”.•Make sure your firewall settings aren’t blocking your web access.•Ask your system administrator for help.
' ===============================
Code: Select all
'PROXY ADDRESS=curl,<SP>-x,<SP>--proxy<SP>SOCKS5:/'PROXY ADDRESS=curl(-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port; /ValidSocks5IP:port;
' (does not go to example.com)
returns PROMPT is empty
&& then(instead of example.com) I have "The proxy server isn’t responding •Check your proxy settings curl(-x:80. Go to Tools > Internet Options > Connections. If you are on a LAN, click “LAN settings”.•Make sure your firewall settings aren’t blocking your web access.•Ask your system administrator for help.
'
' ---------------------------------ends no syntax errors reported -----------
Code: Select all
PAUSE
PROMPT {{GOTO}}
URL GOTO=example.com:80
PAUSE
Code: Select all
'URL GOTO=curl,<SP>-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port<SP>example.com; 'Your search - curl, -x, --proxy SOCKS5://ValidSocks5IP:port example.com; - did not match any documents.
'PROXY ADDRESS=curl -x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port; 'Wrong format of PROXY ADDRESS
'PROXY ADDRESS=curl(-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port); 'Wrong format of PROXY ADDRESS
'PROXY ADDRESS=curl(-x, --proxy SOCKS5://ValidSocks5IP:port; 'Wrong format of PROXY ADDRESS
'PROXY ADDRESS=curl(-x, --proxy SOCKS5://ValidSocks5IP:port) 'Wrong format of PROXY ADDRESS
'PROXY ADDRESS=curl(-x, --proxy SOCKS5:\/\/ValidSocks5IP:port) 'Wrong format of PROXY ADDRESS
'PROXY ADDRESS=curl(-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port) ' no error but doesnt go to proxy
'PROXY ADDRESS=curl -x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port 'Error -1100: Wrong format of PROXY ADDRESS
'URL GOTO=javascript:open(bing.com); ' doesnt open bing && returns PROMPT is empty && then opens 'example.com' properly
'URL GOTO=javascript:open("curl,bing.com"); ''The webpage cannot be displayed
'URL GOTO=javascript:open("curl<SP>-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port,example.com"); ' returns '[object Window]'
'PROXY ADDRESS=javascript:open.curl("-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port"); 'returns PROMPT is empty && then opens 'example.com' properly
'PROXY ADDRESS=javascript:open.curl("-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port"); 'same web page displayed at the PAUSE && then after PAUSE =The webpage cannot be displayed
'PROXY ADDRESS=javascript:curl("-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port"); 'same web page displayed at the PAUSE && then after PAUSE =The webpage cannot be displayed
'PROXY ADDRESS=javascript:open("curl<SP>-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port"); 'The webpage cannot be displayed
'URL GOTO=javascript:open 'curl("-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port")';
'URL GOTO=javascript:open("curl<SP>-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port"); ' returns '[object Window]'
'URL GOTO=javascript:start("curl<SP>-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port");
'URL GOTO=javascript:run("curl<SP>-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port");
'URL GOTO=javascript:curl("-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port");
'URL GOTO=javascript:("curl<SP>-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port"); example.com:80");
'URL GOTO= javascript:openDemo(curl<SP>-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port example.com:80);
'URL GOTO= javascript:curl ('-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port example.com:80');
'URL GOTO= javascript:curl ('-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port example.com');
'URL GOTO= javascript:curl '-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port example.com';
'URL GOTO= javascript:curl ("-x, --proxy SOCKS5://ValidSocks5IP:port example.com");
'URL GOTO= javascript:curl "-x, --proxy SOCKS5://ValidSocks5IP:port example.com";
'URL GOTO= javascript:curl ("-x, --proxy SOCKS5://ValidSocks5IP:port example.com:80")
'URL GOTO= javascript:curl ("-x, --proxy SOCKS5://ValidSocks5IP:port example.com")