Created
March 28, 2016 11:57
-
-
Save braindeaf/3eb80f862215f8188dcd to your computer and use it in GitHub Desktop.
Faraday HTTP Request with different source IP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conn = Faraday.new(url: 'http://www.bunyons.com') | |
conn.post do |req| | |
req.url '/dave/onion' | |
req.headers['Referer'] = 'http://www.something.com' | |
req.headers['User-Agent'] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36" | |
req.headers['X-Forwarded-For'] = '86.185.170.5' | |
req.headers['X-Requested-With'] = 'XMLHttpRequest' | |
req.body = { plasticpantsid: 2403, arbitudeabuthnot: 'faff' } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment