Skip to content

Instantly share code, notes, and snippets.

View ixs's full-sized avatar
👋

Andreas Thienemann ixs

👋
View GitHub Profile
@ixs
ixs / ssltest.py
Last active February 28, 2020 21:41
Heartbleed test with data dump functionality.
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected])
# The author disclaims copyright to this source code.
#
# Modified slightly by Andreas Thienemann <[email protected]> for clearer exploit code
# and 64k reads
#
# This version of the exploit does write received data to a file called "dump" in the local directory
# for analysis.
@ixs
ixs / gist:8917626
Created February 10, 2014 15:13
Fetch battery charge values from iCloud
#!/usr/bin/python
from pyicloud import PyiCloudService
api = PyiCloudService('user', 'password')
for dev in api.devices:
print "%-20s %-15s %3i%%" % (dev.content["deviceDisplayName"], dev.content["batteryStatus"], dev.content["batteryLevel"] * 100)