techrobatics.com

Sysadmin Ex Machina

Browsing Posts tagged security

The title of this post is actually an attempted SQL Injection I did against my own website, right here. It populated the title of a new post, just as you see here above. Fortunately, it was the only injection of about 600 that succeeded. Y’all might want to look for the “SQL Inject Me” Plugin [...]

Here’s a short script to give you an idea of how to programmatically answer basic authentication prompts using python. #!/usr/bin/env python import urllib2, sys, re, base64 from urlparse import urlparse #base64string = base64.encodestring(‘%s:%s’ % (data['name'], data['pass']))[:-1] #req.add_header(“Authorization”, “Basic %s” % base64string) username = ‘some_userid’ password = ‘some_password’ theurl = ‘http://www.techrobatics.com/protected’ #realm = ‘REALM’ base64string = [...]