Replace All Spaces (or any other character) Between Quotes in Python

This is an oddly specific post, but I recently had this situation come up and solving it was actually not very straightforward. Specifically, I was writing a program to interpret commands and this program happened to split different arguments by spaces. So what if you have something like this: FTP CD “This is a file […]

Chef undefined method ‘content_source’ error

The Problem If you’re running chef v2.1 you may have run into this bug. I’m running CentOS 6 in a VM and received the error when running “chef generate template webserver index.html”. This was my resulting error code: /opt/chefdk/embedded/apps/chef-dk/lib/chef-dk/skeletons/code_generator/recipes/template.rb:19:in `from_file’: undefined method `content_source’ for # (NoMethodError) from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.0.alpha.1/lib/chef/mixin/from_file.rb:30:in `instance_eval’ from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.0.alpha.1/lib/chef/mixin/from_file.rb:30:in `from_file’ from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.0.alpha.1/lib/chef/cookbook_version.rb:245:in `load_recipe’ […]

FTPoverEmail Beta v1.00

I made a few more edits to FTPoverEmail. I got the SSH functionality working and fixed a couple of bugs for this next version. I’ve started studying for CCDP so my work on it has tailed off a fair amount. Here’s the next version with the bug fixes and SSH functionality. I called this one […]

FTPoverEmail Alpha

Overview Ever find yourself on a computer where you only have access to e-mail? That’s where FTPoverEmail shines. I frequently find myself in situations where I only have access to e-mail, but I still want to interact with my home server in an FTP-like fashion. You may be in a hotel business center or you […]

Checking Open Ports with Ruby

Below is the code for listing open ports on a windows box via Ruby. This line first lists all active connections via netstat. The find “LISTENING” section lists those ports in a listening state. The “find /V” looks for any line without “0.0.0.0”. This last part is important because many times Windows lists connections in […]

Preview of SimpleFuzz

Simplefuzz is my latest project. SimpleFuzz is a fuzzer designed with a few objectives in mind: • Take full advantage of parallel computing • Be able to exhaustively search a range of possibilities • Be easy to use for “quick n’ dirty’ fuzzing • Cater to manual fuzzing and reverse engineering • Work well for […]

Lisp Interpreter

This project to is quite old… and also unfinished. It is a LISP interpreter! It will correctly evaluate simple LISP instructions however, it is buggy. I never finished it off so it will puke on the more complex instructions. I’ve considered going back to it a couple of times, but my recent interests have been […]

Fun With ARP

Just as every budding script kiddie does, I too discovered the magic of ARP poisoning. I mean, honestly who doesn’t find it amusing to intercept your college roommate’s request for google.com and redirect it to something far more inappropriate. This project is definitely a work in progress. I wrote it using the winpcapy library for […]

PNG Image Steganography with libpng

This project was a little more recent. I couldn’t find any good examples of simple steganography tools that worked with encoding. I wanted to stego an the LSB (least significant bit) of PNG images. Unfortunately, I couldn’t find any great code examples and to complicate the problem you can’t just change the last bit because […]