All Projects → welefen → ssrf-agent

welefen / ssrf-agent

Licence: MIT license
make http(s) request to prevent SSRF

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ssrf-agent

Crypt Le
Crypt::LE - Let's Encrypt / Buypass / ACME client and library in Perl for obtaining free SSL certificates (inc. generating RSA/ECC keys and CSRs). HTTP/DNS verification is supported out of the box, easily extended with plugins, easily dockerized.
Stars: ✭ 277 (+1631.25%)
Mutual labels:  dns, https
Ymhttp
基于 libcurl 的 IO 多路复用 HTTP 框架,适用于 iOS 平台,支持 HTTP/HTTPS/HTTP2/DNS(SNI)
Stars: ✭ 127 (+693.75%)
Mutual labels:  dns, https
Nps
一款轻量级、高性能、功能强大的内网穿透代理服务器。支持tcp、udp、socks5、http等几乎所有流量转发,可用来访问内网网站、本地支付接口调试、ssh访问、远程桌面,内网dns解析、内网socks5代理等等……,并带有功能强大的web管理端。a lightweight, high-performance, powerful intranet penetration proxy server, with a powerful web management terminal.
Stars: ✭ 19,537 (+122006.25%)
Mutual labels:  dns, https
flareon
🦊A cloudflare DNS over HTTPs resolver client library.
Stars: ✭ 14 (-12.5%)
Mutual labels:  dns, https
hpagent
A ready to use http and https agent for working with proxies that keeps connections alive!
Stars: ✭ 86 (+437.5%)
Mutual labels:  agent, https
MicroDNSSrv
A micro DNS server for MicroPython to simply respond to A queries on multi-domains with or without wildcards (used on Pycom modules & ESP32)
Stars: ✭ 43 (+168.75%)
Mutual labels:  dns, lookup
Encrypted Dns
Configuration profiles for DNS HTTPS and DNS over TLS for iOS 14 and MacOS Big Sur
Stars: ✭ 455 (+2743.75%)
Mutual labels:  dns, https
gost
GO Simple Tunnel - a simple tunnel written in golang
Stars: ✭ 154 (+862.5%)
Mutual labels:  dns, https
Chameleon
Customizable honeypots for monitoring network traffic, bots activities and username\password credentials (DNS, HTTP Proxy, HTTP, HTTPS, SSH, POP3, IMAP, STMP, RDP, VNC, SMB, SOCKS5, Redis, TELNET, Postgres and MySQL)
Stars: ✭ 230 (+1337.5%)
Mutual labels:  dns, https
Partyloud
A simple tool to generate fake web browsing and mitigate tracking
Stars: ✭ 170 (+962.5%)
Mutual labels:  dns, https
Getaltname
Extract subdomains from SSL certificates in HTTPS sites.
Stars: ✭ 320 (+1900%)
Mutual labels:  dns, https
Http2 Wrapper
Use HTTP2 the same way like HTTP1
Stars: ✭ 183 (+1043.75%)
Mutual labels:  agent, https
Sites Using Cloudflare
💔 Archived list of domains using Cloudflare DNS at the time of the CloudBleed announcement.
Stars: ✭ 1,914 (+11862.5%)
Mutual labels:  dns, https
Outis
outis is a custom Remote Administration Tool (RAT) or something like that. It was build to support various transport methods (like DNS) and platforms (like Powershell).
Stars: ✭ 111 (+593.75%)
Mutual labels:  agent, dns
dohjs
DNS over HTTPS client for use in the browser
Stars: ✭ 71 (+343.75%)
Mutual labels:  dns, https
movie-trailer
🎥 Fetch movie trailers: "Crash" ➔ http://path/to/trailer
Stars: ✭ 19 (+18.75%)
Mutual labels:  lookup
zenit
Zenit is a daemon collector for metrics and log parsers for any MySQL variant and ProxySQL
Stars: ✭ 24 (+50%)
Mutual labels:  agent
newdns
A library for building custom DNS servers in Go.
Stars: ✭ 40 (+150%)
Mutual labels:  dns
unbound-dns-firewall
DNS-Firewall Python script for UNBOUND
Stars: ✭ 23 (+43.75%)
Mutual labels:  dns
fresh.py
An efficient multi-threaded DNS resolver validator
Stars: ✭ 80 (+400%)
Mutual labels:  dns

ssrf-agent

prevent SSRF in http(s) request

Install

npm install ssrf-agent --save

Usage

const ssrfAgent = require('ssrf-agent');
const request = require('request');
// with request module
const url = 'http://www.welefen.com'
request(url, {
  agent: ssrfAgent(url)
}, (err, response, body) => {
  
})
const ssrfAgent = require('ssrf-agent');
const fetch = require('node-fetch');
// with node-fetch module
const url = 'http://www.welefen.com'
fetch(url, {
  agent: ssrfAgent(url)
}).then(res => res.text).then(data => {

}).catch(err => {

})

Options

const getAgent = require('ssrf-agent');
const agent = getAgent(ipChecker, agent);
  • ipChecker(ip) {Function} check ip is allowed, default is require('ip').isPrivate
  • agent {String | Object} default is http, support http https or agent instance
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].