{"action":"created","issue":{"url":"https://api.github.com/repos/entropy1337/infernal-twin/issues/26","labels_url":"https://api.github.com/repos/entropy1337/infernal-twin/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/entropy1337/infernal-twin/issues/26/comments","events_url":"https://api.github.com/repos/entropy1337/infernal-twin/issues/26/events","html_url":"https://github.com/entropy1337/infernal-twin/issues/26","id":115688307,"number":26,"title":"question about interface checks","user":{"login":"zstyblik","id":6183869,"avatar_url":"https://avatars.githubusercontent.com/u/6183869?v=3","gravatar_id":"","url":"https://api.github.com/users/zstyblik","html_url":"https://github.com/zstyblik","followers_url":"https://api.github.com/users/zstyblik/followers","following_url":"https://api.github.com/users/zstyblik/following{/other_user}","gists_url":"https://api.github.com/users/zstyblik/gists{/gist_id}","starred_url":"https://api.github.com/users/zstyblik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zstyblik/subscriptions","organizations_url":"https://api.github.com/users/zstyblik/orgs","repos_url":"https://api.github.com/users/zstyblik/repos","events_url":"https://api.github.com/users/zstyblik/events{/privacy}","received_events_url":"https://api.github.com/users/zstyblik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-07T19:53:31Z","updated_at":"2015-11-22T15:07:46Z","closed_at":"2015-11-22T15:07:46Z","body":"Hello,\r\n\r\nI have a question about the following code which can be seen at multiple places:\r\n\r\n```Python\r\n[...]\r\nproc = subprocess.Popen([\"ifconfig\", \"\"], stdout=subprocess.PIPE, shell=True)\r\n(out2, err) = proc.communicate()\r\n[...]\r\nif monitoring_interface in out2:\r\n  # Do stuff\r\n  ssid = str(self.ask(message = 'Enter the SSID')).strip()\r\n  MAC = str(self.ask(message = 'Enter the MAC')).strip()\r\n  [...]\r\nelse:\r\n  wx.MessageBox('make sure you have mon0 interface', 'Warning/Error', wx.ICON_ERROR | wx.ICON_INFORMATION)\r\n```\r\n\r\nWhat's exactly the purpose of these checks? `ifconfig` is called and then, say, `wlan0` is searched in its output. I believe we can get this information elsewhere, resp. we are already getting it from elsewhere.\r\n\r\nAlso, I found a bug here, because we won't get `mon0` interface, but whatever interface comes first. :)\r\n\r\nThank you,\r\nZ."},"comment":{"url":"https://api.github.com/repos/entropy1337/infernal-twin/issues/comments/158765548","html_url":"https://github.com/entropy1337/infernal-twin/issues/26#issuecomment-158765548","issue_url":"https://api.github.com/repos/entropy1337/infernal-twin/issues/26","id":158765548,"user":{"login":"zstyblik","id":6183869,"avatar_url":"https://avatars.githubusercontent.com/u/6183869?v=3","gravatar_id":"","url":"https://api.github.com/users/zstyblik","html_url":"https://github.com/zstyblik","followers_url":"https://api.github.com/users/zstyblik/followers","following_url":"https://api.github.com/users/zstyblik/following{/other_user}","gists_url":"https://api.github.com/users/zstyblik/gists{/gist_id}","starred_url":"https://api.github.com/users/zstyblik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zstyblik/subscriptions","organizations_url":"https://api.github.com/users/zstyblik/orgs","repos_url":"https://api.github.com/users/zstyblik/repos","events_url":"https://api.github.com/users/zstyblik/events{/privacy}","received_events_url":"https://api.github.com/users/zstyblik/received_events","type":"User","site_admin":false},"created_at":"2015-11-22T15:07:46Z","updated_at":"2015-11-22T15:07:46Z","body":"I believe this have been fixed as part of https://github.com/entropy1337/infernal-twin/pull/28."}}