{"action":"created","issue":{"url":"https://api.github.com/repos/evilsocket/bettercap/issues/26","labels_url":"https://api.github.com/repos/evilsocket/bettercap/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/evilsocket/bettercap/issues/26/comments","events_url":"https://api.github.com/repos/evilsocket/bettercap/issues/26/events","html_url":"https://github.com/evilsocket/bettercap/issues/26","id":97350977,"number":26,"title":"Undefined method 'split' for nil:NilClass","user":{"login":"thehunt33r","id":1666462,"avatar_url":"https://avatars.githubusercontent.com/u/1666462?v=3","gravatar_id":"","url":"https://api.github.com/users/thehunt33r","html_url":"https://github.com/thehunt33r","followers_url":"https://api.github.com/users/thehunt33r/followers","following_url":"https://api.github.com/users/thehunt33r/following{/other_user}","gists_url":"https://api.github.com/users/thehunt33r/gists{/gist_id}","starred_url":"https://api.github.com/users/thehunt33r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thehunt33r/subscriptions","organizations_url":"https://api.github.com/users/thehunt33r/orgs","repos_url":"https://api.github.com/users/thehunt33r/repos","events_url":"https://api.github.com/users/thehunt33r/events{/privacy}","received_events_url":"https://api.github.com/users/thehunt33r/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-26T21:16:58Z","updated_at":"2015-07-26T21:21:31Z","closed_at":null,"body":"Hi ! \r\n\r\nJust installed bettercap. When launching it (as root obviously), I get this error : \r\n```ruby\r\n[E] Undefined method `split' for nil:NilClass\r\n[E] /root/.gem/ruby/2.2.0/gems/packetfu-1.1.10/lib/packetfu/protos/eth/header.rb:195:in `mac2str'\r\n/root/.gem/ruby/2.2.0/gems/packetfu-1.1.10/lib/packetfu/protos/arp/header.rb:107:in `arp_saddr_mac='\r\n/root/.gem/ruby/2.2.0/gems/packetfu-1.1.10/lib/packetfu/protos/arp/mixin.rb:25:in `arp_saddr_mac='\r\n/root/.gem/ruby/2.2.0/gems/bettercap-1.1.1/lib/bettercap/network.rb:99:in `block in get_hw_address'\r\n/root/.gem/ruby/2.2.0/gems/bettercap-1.1.1/lib/bettercap/network.rb:96:in `times'\r\n/root/.gem/ruby/2.2.0/gems/bettercap-1.1.1/lib/bettercap/network.rb:96:in `get_hw_address'\r\n/root/.gem/ruby/2.2.0/gems/bettercap-1.1.1/lib/bettercap/spoofers/arp.rb:30:in `initialize'\r\n/root/.gem/ruby/2.2.0/gems/bettercap-1.1.1/lib/bettercap/factories/spoofer_factory.rb:33:in `new'\r\n/root/.gem/ruby/2.2.0/gems/bettercap-1.1.1/lib/bettercap/factories/spoofer_factory.rb:33:in `get_by_name'\r\n/root/.gem/ruby/2.2.0/gems/bettercap-1.1.1/bin/bettercap:148:in `<top (required)>'\r\n/home/rick/.gem/ruby/2.2.0/bin/bettercap:23:in `load'\r\n/home/rick/.gem/ruby/2.2.0/bin/bettercap:23:in `<main>'\r\n```\r\n\r\n\r\nAlso may I suggest using ip addr instead of ifconfig, as ifconfig is being deprecated.\r\n\r\nI may try to dive into the code tomorrow to try to implement ip addr if it is possible.\r\n\r\nThanks for the code tho, great job ! :)"},"comment":{"url":"https://api.github.com/repos/evilsocket/bettercap/issues/comments/125041668","html_url":"https://github.com/evilsocket/bettercap/issues/26#issuecomment-125041668","issue_url":"https://api.github.com/repos/evilsocket/bettercap/issues/26","id":125041668,"user":{"login":"evilsocket","id":86922,"avatar_url":"https://avatars.githubusercontent.com/u/86922?v=3","gravatar_id":"","url":"https://api.github.com/users/evilsocket","html_url":"https://github.com/evilsocket","followers_url":"https://api.github.com/users/evilsocket/followers","following_url":"https://api.github.com/users/evilsocket/following{/other_user}","gists_url":"https://api.github.com/users/evilsocket/gists{/gist_id}","starred_url":"https://api.github.com/users/evilsocket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilsocket/subscriptions","organizations_url":"https://api.github.com/users/evilsocket/orgs","repos_url":"https://api.github.com/users/evilsocket/repos","events_url":"https://api.github.com/users/evilsocket/events{/privacy}","received_events_url":"https://api.github.com/users/evilsocket/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T21:21:30Z","updated_at":"2015-07-26T21:21:30Z","body":"Mmmm looks like a bug of PacketFu::Utils.ifconfig ... could u please send me your ifconfig output?"}}