Login Register






A Few Questions filter_list
Author
Message
A Few Questions #1
Hello! I am just being curious, can Python do the following? If so, where might I look to learn how?

--------
Post Data to a URL form

Respond back with correct form datas

Cover it's tracks
-------

These may be simple questions to you, but to me, it seems complex.
Much appreciated!


P.S.
In β‰ˆ1.5 week I should have time to post tutorials and other things! Thanks for bearing with me! [emoji173]

Reply

RE: A Few Questions #2
(03-18-2015, 05:53 AM)Methylisothiazolinone Wrote: Hello! I am just being curious, can Python do the following? If so, where might I look to learn how?

--------
Post Data to a URL form

Respond back with correct form datas

Cover it's tracks
-------

These may be simple questions to you, but to me, it seems complex.
Much appreciated!


P.S.
In β‰ˆ1.5 week I should have time to post tutorials and other things! Thanks for bearing with me! [emoji173]


  1. Yes, you can create a post request via Python... (Google it... It's actually pretty simple)
  2. Mostly yes.... But its pretty hard to program unless you know what you are looking for/parameter names.
  3. What? You need to explain this question better.... WAAAAY too open ended.

Reply

RE: A Few Questions #3
(03-18-2015, 06:21 AM)Brawler Wrote:
  1. Yes, you can create a post request via Python... (Google it... It's actually pretty simple)
  2. Mostly yes.... But its pretty hard to program unless you know what you are looking for/parameter names.
  3. What? You need to explain this question better.... WAAAAY too open ended.
Thanks a bunch, I'll check it before spar tomorrow.

You're right, I should have been more elaborate. I mean, can't I get it to use proxies some how? Also, if I let the program wait before trying the next method, isn't that a way to cover tracks?


I'll look up how to make it read a text file and ignore ":" for a combo list to make a brute. Which is what I'm trying to do. I wanna be sure my things are secure.

Reply

RE: A Few Questions #4
Code:
import urllib2 import urllib url = "http://example.com" headers = {'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'} post = {'mydick': 'big', 'yourdick': 'small'} data = urllib.urlencode(post) request = urllib2.Request(url,data,headers) send = urllib2.urlopen(request) response = response.read() print response

The script above will send the URL encoded POST data to the url http://example.com, then it will read the server's response, and print it. If you want to incorporate cookies (for logins), that's a different story. I could post an example of that too if you'd like. There are more ways to do this, this is just the easiest way in my opinion. The readability is nice.

Assuming when you say "cover your tracks" you mean make it seem like you never sent the request, it depends. If you actually have access to the access logs where GET/POST forms are logged, then yes. Otherwise, no. If what you meant was hiding your IP then yes, you can build in an HTTP/HTTPS proxy to your script.

Reply

RE: A Few Questions #5
This could be done simply with Curl and stuff. Not even necessary to use Python (unless you want to do more).
[Image: 7ajmN5P.jpg]

Telegram: Oni_SL (Link)

Reply

RE: A Few Questions #6
You could use Beautiful Soup to intergrate a proxy.

Code:
import requests from bs4 import BeautifulSoup proxies = {'http': '0.0.0.0:80'} auth = requests.auth.HTTPProxyAuth('[username]', '[password]') request = requests.get('http://www.yourmum.net/', auth=auth, proxies=proxies) page = BeautifulSoup(request.content) print page

Reply