Counter Hacking script

I interested to learn how to programming counter hacking script for python. Please guide me. thanks