rgov / http-translator Goto Github PK
View Code? Open in Web Editor NEWTranslate curl commands to Python and JavaScript code
Home Page: https://ryan.govost.es/http-translator/
License: MIT License
Translate curl commands to Python and JavaScript code
Home Page: https://ryan.govost.es/http-translator/
License: MIT License
The code doesn't do anything with args.referer
or args.user_agent
.
检测到 rgov/http-translator 一共引入了675个开源组件,存在19个漏洞
漏洞标题:serialize-javascript 代码问题漏洞
缺陷组件:[email protected]
漏洞编号:CVE-2020-7660
漏洞描述:Verizon serialize-javascript是美国威瑞森电信(Verizon)公司的一款支持将JavaScript序列化为 JSON超集的软件包。
serialize-javascript 3.1.0之前版本中存在代码问题漏洞。远程攻击者可借助index.js文件中的‘deleteFunctions’函数利用该漏洞注入任意代码。
国家漏洞库信息:https://www.cnvd.org.cn/flaw/show/CNVD-2020-53801
影响范围:(∞, 3.1.0)
最小修复版本:3.1.0
缺陷组件引入路径:[email protected]>[email protected]>[email protected]
[email protected]>[email protected]>[email protected]
[email protected]>[email protected]>[email protected]>[email protected]
另外还有19个漏洞,详细报告:https://mofeisec.com/jr?p=ieedfa
curl --data-binary 'x' http://example.com
This should generate a POST request.
The --libcurl
option to curl
generates a C file:
$ curl --libcurl - --silent -o /dev/null http://example.com
/********* Sample code generated by the curl command line tool **********
* All curl_easy_setopt() options are documented at:
* https://curl.haxx.se/libcurl/c/curl_easy_setopt.html
************************************************************************/
#include <curl/curl.h>
int main(int argc, char *argv[])
{
CURLcode ret;
CURL *hnd;
hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_URL, "http://example.com");
curl_easy_setopt(hnd, CURLOPT_NOPROGRESS, 1L);
curl_easy_setopt(hnd, CURLOPT_USERAGENT, "curl/7.54.0");
curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, (long)CURL_HTTP_VERSION_2TLS);
curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
/* Here is a list of options the curl code used that cannot get generated
as source easily. You may select to either not use them or implement
them yourself.
CURLOPT_WRITEDATA set to a objectpointer
CURLOPT_INTERLEAVEDATA set to a objectpointer
CURLOPT_WRITEFUNCTION set to a functionpointer
CURLOPT_READDATA set to a objectpointer
CURLOPT_READFUNCTION set to a functionpointer
CURLOPT_SEEKDATA set to a objectpointer
CURLOPT_SEEKFUNCTION set to a functionpointer
CURLOPT_ERRORBUFFER set to a objectpointer
CURLOPT_STDERR set to a objectpointer
CURLOPT_HEADERFUNCTION set to a functionpointer
CURLOPT_HEADERDATA set to a objectpointer
*/
ret = curl_easy_perform(hnd);
curl_easy_cleanup(hnd);
hnd = NULL;
return (int)ret;
}
/**** End of sample code ****/
This project could try to do the same, or load curl
with Emscripten and have it generate the code, and parse it. (This might be an interesting way to replace the frontend altogether.)
A JavaScript backend for making XMLHTTPRequests would be useful. It would need to detect prohibited headers and let the user know about these.
var xhr = new XMLHttpRequest();
xhr.open("GET", "http://example.com/bar/foo.txt", false /* asynchronous */, null /* username */, null /* password */);
xhr.setRequestHeader("Content-Type", "text/plain;charset=UTF-8");
xhr.onload = function (e) { /* ... */ }
xhr.onerror = function (e) { /* ... */ }
xhr.send(body /* or null if no body */);
If the input has a JSON body, it should use JSON.stringify()
on the original object.
Python's urllib.request
module can handle most requests, and it is in the standard library.
i know that's this off topic but any reply would be very useful
https://security.stackexchange.com/questions/214312/is-it-possible-to-bypass-cookie-protection-to-perform-a-csrf-on-huawei-hg531-v1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.