Successfully reported this slideshow.
Your SlideShare is downloading. ×
Upcoming SlideShare
MSBuild Concepts
MSBuild Concepts
Loading in …3
×

Check these out next

1 of 17
1 of 17

More Related Content

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all

Ear

  1. 1. EAR (E)xtensible (A)pi for (R)econnaissance
  2. 2. What/Why/How • Automatable Reconnaissance • Similar Maltego • Very early stage • Rails 2.3.8
  3. 3. Pentesters care about • Organizations • Users • Domains • Devices (Hosts) / Services / Apps • Locations • etc...
  4. 4. USAGE o = Organization.create :name => “masshackers” o.tasks o.run_task(“dns_tld_brute”)
  5. 5. USAGE o = Organization.find_by_name(“masshackers”) o.children
  6. 6. USAGE o = Organization.find_by_name(“masshackers”) o.domains o.devices o.users
  7. 7. USAGE o = Organization.find_by_name(“masshackers”) o.run_task(“dns_tld_brute”) o.domains.each do |d| d.run_task(“dns_sub_brute”) end
  8. 8. Background Concepts • Database Schema / Objects • Active Record (Rails ORM) • Task Manager • Object Manager
  9. 9. Background Concepts • ORM makes it easy to interact w/ a view of the world. • Keep track of things you care about, but for free
  10. 10. Objects • Rails makes it simple to declare objects • Migration create_table "organizations" do |t| t.string "name" t.text "description" t.string "address" t.string "email_mask" end • Class Definition def Organization end
  11. 11. Object Manager • Maintains relationships between objects • Who created who? (Parent / Child)
  12. 12. Tasks • Methods to make sure they can operate on an object • Setup/Run/Cleanup • Create new objects!
  13. 13. Task Manager • Maintains a list of known tasks • Lets us check to see if we can operate on an object • Runs task methods in the right order (setup / run / cleanup) • Records task runs
  14. 14. Objects->Tasks • Each Task has a: • allowed_types • update_types • create_types • TaskManager checks these at task run time
  15. 15. Tasks -> Objects • Task has a create_object method • creates the object • uses the object manager to maintain parent child relationships
  16. 16. Interacting • Rails isn’t just a web framework • script/console is super-powerful • interact directly with models
  17. 17. demo!

Editor's Notes

  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

×