Skip to main content

Posts

Showing posts with the label Shell

Best Hacking Books Collection 2017

Cyber security takes big part in Technology. There’s a lot of script kiddie hackers who might get lucky and do mayhem without understanding what they did. Hopefully, there’s hackers with better skills called White Hat hackers. They are truly professionals in cyber security. They do almost the same thing as black hat hackers do, but once they find vulnerability, they report it instead of exploiting it. I made this list of hacking eBooks and you can check it out. If you are cyber security enthusiast, you might wanna take a look at following PDF hacking eBooks. They contain a lot of useful information. So feel free to download and share this article with your friends. Black Belt Hacking & Complete Hacking Book Hackers High School 13 Complete Hacking E-books Penentration Testing With Backtrack 5 A Beginners Guide To Hacking Computer Systems Black Book of Viruses and Hacking Secrets of Super and Professional Hackers Dangerours Google Hacking Database and Attacks Intern...

Run python commands from a bash shell

In this post I am going to show you how you can run python commands from inside a shell. There are already a few ways of doing so Write your python code in a .py file and run "python yourfile.py" Open up IDLE shell by just typing "python" and writing your command in that shell. There is also another option of python command - $ python -c 'your_command_here'  which will run the python command you specify in quotes. However, the problem with above mentioned methods is, they are time consuming. If you want to quickly perform a list comprehension or anything equivalent in python, you have to either write a script or manually open a python interactive terminal and write your command there. I am going to show you a little tweak you can do in your shell to execute python code (or parts of it) directly from command line. It works as below - $ p '<your_python_code_here>' You type "p" followed by the python statement yo...