Working through Violent Python

I’m working through Violent Python. I’m still working on the Automating Python stuff to, but that requires WingIDE and I only have 1 license for that. Which means run on a VM at home.

Violent Python suggested an IDE at the beginning, but the examples are written in a way (at least in the first 2 chapters) so I can SSH to my multi-purpose server and do everything via VIM and the CLI.

So far here is my thoughts on Violent Python.
Pros:

  1. I can use on a headless server over SSH / No GUI needed.
  2. Don’t need to worry about an IDE
  3. Focused on Infosec based scripting

Cons:

  1. The white space in the code is off. Stuff that should be indented doesn’t appear to be in the text.
  2. Some of the code as written in the book doesn’t work right, but not enough was covered on debugging to actually troubleshoot the problems the reader has.
  3. Doesn’t go in-depth enough on some of the subjects when they’re introduced.
  4. uses example servers that are not provided to the readers to use. Doesn’t talk about how to set up a test environment.
  5. The programs in the book don’t match the downloadable content on the book’s companion site.

The book said to use

but that breaks the port scanner because of the way it reads the command line. As written in the book it passes 21, to the part of the code that scans. Having the spaces trigger as list items.

There were lots of ways to fix that when I googled it last night. Everything from strip the space in a for loop to adding quotes around the ports passed with the -p option.

Leave a Reply

Your email address will not be published. Required fields are marked *