Wednesday, 13 August 2014

Dynamic Public IP Address Finder (DynDNS alternative)

If you want to connect to your computer remotely from the WAN and your public ip is dynamic, then you need to know it at all times.
This small project in python is intended for this purpose, for those who don't want to use dyn dns services.

How this python script works:
  • It finds your public IP from the
  • Creates an ips.txt if it doesn't exist, and writes the ip
  • If the file already exists, it compares the ip from the file with the website's one, if it's the same it doesn't do anything
  • If it's different, it overwrites the file and then sends an email
You can convert it to exe and run it as often as you want through windows scheduled tasks, for an up to date public IP.

Monday, 11 August 2014

How to create a single Windows executable from a Python script

We'll use py2exe for this purpose:

Let's say we have a python script named, and we want to create a single .exe file to run on Windows.

After the installation of the py2exe we create another .py script and run it.
Source code below:

It will create a single windows executable file out of our script.

Python Keylogger (Source Code)

Below is a simple FTP Key logger I've made in python.
Inspired by

How it works:
First it checks if there is a keys.txt file under %appdata% folder.
If there isn't, it creates one and starts recording keystrokes immediately.
It uploads the keys.txt file on the ftp server every time you run the script.

Python 2.7 32bit:

click here to learn how to make this python script a windows executable.

Tuesday, 29 July 2014


In my case with a Samsung Galaxy S4 mini, the reason was our corporate email,
when you set up a Microsoft exchange active sync account, the default active sync policy takes over your phone.
You can find it and edit it as per the screenshot below.

Organization Configuration > Client Access > right click on y our Default policy >  Device Applications Tab > tick the last two check-boxes > Apply.