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’ […]

Giving Automated Fuzzing a Trial Run with Peach

I’ve never found my own bugs and written my own exploits and that’s a skill I’d like to develop. In that vain, I’ve been trying out the Peach 3 Fuzzer. Here are some of the tutorials I tried out: Fuzzing with Peach – Part 1 Fuzzing with Peach – Part 2 I also started writing […]