Information Security Guide
  • Home
  • Author
  • About
Sign in Subscribe

python

Python snippets and tutorials for Information Security Professionals.
python

Python Web Request via Burp or other Proxy Servers

It's no surprise that even if you are automating your web requests for pentesting, sometimes it's easier to debug sending through the Burp Proxy so that you can add to the repeater. Other times, you may just want or need to use a proxy for the
Jul 12, 2019
python

Python Time Elapsed

Snippets to calculate time elapsed in python. import time start = time.time() #rest of the code end = time.time() timeElapsed = end - start Python 3: import time start = time.process_time() #rest of the code end = time.process_time() timeElapsed = end - start
Jun 27, 2019
python

Quick FTP Server with python

This one liner python snippet runs ftp server with write access for anonymous user: python -m pyftpdlib -p 21 -w
Jun 26, 2019
python

Quick Python Webserver in a custom Directory

This little one liner python snippet will allow you to run a quick python webserver in a custom directory and not the current directory. pushd /var/www/html;python -m SimpleHTTPServer 80;popd
Jun 26, 2019
python

Python Web request

An example code to interact with a webpage with python request library. import requests from colorama import Fore, Back, Style import sys URL=sys.argv[1] requests.packages.urllib3.disable_warnings(requests.packages.urllib3.exceptions.InsecureRequestWarning) def format_text(title,item): cr = '\r\n' section_break = cr + "
Jun 26, 2019
Page 1 of 1
Information Security Guide © 2025
Powered by Ghost