【问题标题】:Cant find a way to use SOCKS5 with iMacros找不到将 SOCKS5 与 iMacros 一起使用的方法
【发布时间】:2015-05-26 03:44:55
【问题描述】:

配置: imacros browser 10.0.2,IE11(IE 从未原生支持 socks4/5),Windows 7

序言:试图找到(我的)最好的方式(使用 imacros)来使用订阅 socks5 服务 我在 imacros.net 论坛上发帖,没有任何回应。我没有想法

测试:尝试了各种工具,例如 privoxy 和 pipolio(以及其他),但每个工具都缺少有用的东西(对我来说)

SO 搜索: 没有发现任何有用的信息 https://stackoverflow.com/search?q=imacros+curl

iMacros 搜索: 没有解决方案的旧线程 http://forum.imacros.net/search.php?keywords=socks5&terms=all&author=&sc=1&sf=all&sr=posts&sk=t&sd=d&st=0&ch=300&t=0&sid=424c681f9c46b11244e875f6ba11c079&submit=Search+Forum

基本代码: 仅使用 Windows 7 cmd shell 并安装 wincurl 我发现这非常可行::

I:\public_html>curl -x, --proxy SOCKS5://ValidSocks5IP:port example DOT com:80

给我预期的输出(html 代码)并验证代理是否正常工作

=== 仅列出相关输出 ===

<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://  geo DOT example  DOT com/flags_iso/128/us DOT png" align=absmiddle> [b]
162.243.163.141
[/b][b][/b]</span>
<table>
<tr>
<td>
ISP:
</td>
<td>
Digital Ocean
</td>
</tr>
<tr>
<td>
Country:
</td>
<td>[b]
United 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>

问题:每次尝试使用 EVAL 只会产生另一个语法错误。基于 (iMacros)EVAL 命令页面,这是我能做到的最好的了

SET !VAR1 EVAL (var x = ("I:\\public_html\\cmd.exe"; "curl -x, --proxy SOCKS5://ValidSocks5IP:port example DOT com:80"); x;)
'
URL GOTO= {{!VAR1}}

ALSO 我确实在这里尝试了演示代码:http://wiki.imacros.net/URL#Using_Javascript

 URL GOTO=http://www DOT iopus DOT com
 URL GOTO=javascript:openDemo('shared/flash/imacros1',820,650);
 TAB T=2

它工作正常,但我自己的每个版本都基于该代码我没有成功

'testsocks5.iim

    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

按照这个通用代码^^^我尝试了变化

PROXY ADDRESS=curl,<SP>-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port;<SP>example <DOT> com;
'PROXY ADDRESS=curl,<SP>-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port,<SP>example <DOT> com; 
'PROXY ADDRESS=curl,<SP>-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port<SP>example <DOT> com;

--三个都报同样的错误---^^^^^^-----&没有语法报错 (不去示例 DOT com)返回 PROMPT 为空 && 然后(而不是示例 DOT com)我有 *

“代理服务器没有响应 •检查您的代理设置 curl(-x:80。转到工具 > Internet 选项 > 连接。如果您在 LAN 上,请单击“LAN 设置”。•使确保您的防火墙设置没有阻止您的网络访问。•向您的系统管理员寻求帮助。

'PROXY ADDRESS=curl,<SP>-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port;
'PROXY ADDRESS=curl(-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port;

'this-(same error) 报告了所有两个----以上 ^^^ ---&没有语法错误 ' 提示输出为空 && 然后(而不是示例 DOT com)我有

代理服务器没有响应•检查您的代理设置 curl(-x:80。转到工具 > Internet 选项 > 连接。如果您在 LAN 上,请单击“LAN 设置”。•确保您的防火墙设置没有阻止您的网络访问。•向您的系统管理员寻求帮助。

' ' --------------结束没有报告语法错误-----------

PAUSE
PROMPT {{GOTO}}
URL GOTO=example <DOT> com:80
PAUSE

' ------ 部分代码示例 - 都有语法错误---- '

   'URL GOTO=curl,<SP>-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port<SP>example <DOT> com; 'Your search - curl, -x, --proxy SOCKS5://ValidSocks5IP:port example DOT 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 <DOT> 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 <DOT> com"); ' returns '[object Window]'
    'PROXY ADDRESS=javascript:open.curl("-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port"); 'returns PROMPT is empty && then opens 'example <DOT> 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 DOT com:80");
    'URL GOTO= javascript:openDemo(curl<SP>-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port example DOT com:80);
    'URL GOTO= javascript:curl ('-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port example DOT com:80');
    'URL GOTO= javascript:curl ('-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port example DOT com');
    'URL GOTO= javascript:curl '-x,<SP>--proxy<SP>SOCKS5://ValidSocks5IP:port example DOT com';
    'URL GOTO= javascript:curl ("-x, --proxy SOCKS5://ValidSocks5IP:port example DOT com");
    'URL GOTO= javascript:curl "-x, --proxy SOCKS5://ValidSocks5IP:port example DOT com";
    'URL GOTO= javascript:curl ("-x, --proxy SOCKS5://ValidSocks5IP:port example DOT com:80")
    'URL GOTO= javascript:curl ("-x, --proxy SOCKS5://ValidSocks5IP:port example DOT com")

【问题讨论】:

    标签: curl imacros


    【解决方案1】:

    服务提供商已切换进程,现在我可以使用 HTTP 代理规则了,这对我来说很好!!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-22
      • 1970-01-01
      相关资源
      最近更新 更多