{"action":"created","issue":{"url":"https://api.github.com/repos/SECFORCE/sparta/issues/78","repository_url":"https://api.github.com/repos/SECFORCE/sparta","labels_url":"https://api.github.com/repos/SECFORCE/sparta/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/SECFORCE/sparta/issues/78/comments","events_url":"https://api.github.com/repos/SECFORCE/sparta/issues/78/events","html_url":"https://github.com/SECFORCE/sparta/issues/78","id":263910783,"number":78,"title":"Error Running scans","user":{"login":"normalnorm","id":26597817,"avatar_url":"https://avatars0.githubusercontent.com/u/26597817?v=4","gravatar_id":"","url":"https://api.github.com/users/normalnorm","html_url":"https://github.com/normalnorm","followers_url":"https://api.github.com/users/normalnorm/followers","following_url":"https://api.github.com/users/normalnorm/following{/other_user}","gists_url":"https://api.github.com/users/normalnorm/gists{/gist_id}","starred_url":"https://api.github.com/users/normalnorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normalnorm/subscriptions","organizations_url":"https://api.github.com/users/normalnorm/orgs","repos_url":"https://api.github.com/users/normalnorm/repos","events_url":"https://api.github.com/users/normalnorm/events{/privacy}","received_events_url":"https://api.github.com/users/normalnorm/received_events","type":"User","site_admin":false},"labels":[{"id":113880986,"url":"https://api.github.com/repos/SECFORCE/sparta/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-09T14:16:07Z","updated_at":"2017-11-16T07:51:10Z","closed_at":null,"author_association":"NONE","body":"running on kali  most recent kde iso, getting python error when adding host to scope. No scans start and host not added. console throws this...\r\n\r\nTraceback (most recent call last):\r\n  File \"/root/sparta/ui/view.py\", line 376, in callAddHosts\r\n    self.controller.addHosts(self.adddialog.textinput.text(), self.adddialog.discovery.isChecked(), self.adddialog.nmap.isChecked())\r\n  File \"/root/sparta/controller/controller.py\", line 184, in addHosts\r\n    self.runStagedNmap(iprange, runHostDiscovery)\r\n  File \"/root/sparta/controller/controller.py\", line 555, in runStagedNmap\r\n    self.runCommand('nmap','nmap (stage '+str(stage)+')', str(iprange), '', '', command, getTimestamp(True), outputfile, textbox, discovery, stage, stop)\r\n  File \"/root/sparta/app/auxiliary.py\", line 85, in getTimestamp\r\n    timestamp = datetime.datetime.fromtimestamp(t).strftime(\"%d %b %Y %H:%M:%S\").decode(locale.getlocale()[1])\r\nTypeError: decode() argument 1 must be string, not None\r\n"},"comment":{"url":"https://api.github.com/repos/SECFORCE/sparta/issues/comments/344842603","html_url":"https://github.com/SECFORCE/sparta/issues/78#issuecomment-344842603","issue_url":"https://api.github.com/repos/SECFORCE/sparta/issues/78","id":344842603,"user":{"login":"st3r30byt3","id":8157586,"avatar_url":"https://avatars0.githubusercontent.com/u/8157586?v=4","gravatar_id":"","url":"https://api.github.com/users/st3r30byt3","html_url":"https://github.com/st3r30byt3","followers_url":"https://api.github.com/users/st3r30byt3/followers","following_url":"https://api.github.com/users/st3r30byt3/following{/other_user}","gists_url":"https://api.github.com/users/st3r30byt3/gists{/gist_id}","starred_url":"https://api.github.com/users/st3r30byt3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/st3r30byt3/subscriptions","organizations_url":"https://api.github.com/users/st3r30byt3/orgs","repos_url":"https://api.github.com/users/st3r30byt3/repos","events_url":"https://api.github.com/users/st3r30byt3/events{/privacy}","received_events_url":"https://api.github.com/users/st3r30byt3/received_events","type":"User","site_admin":false},"created_at":"2017-11-16T07:51:09Z","updated_at":"2017-11-16T07:51:09Z","author_association":"CONTRIBUTOR","body":"Hi guys! \r\n\r\nThe quickest workaround I can think of is to edit /usr/share/sparta/app/auxiliary.py and change the line that has:\r\n\r\ntimestamp = datetime.datetime.fromtimestamp(t).strftime(\"%d %b %Y %H:%M:%S\").decode(locale.getlocale()[1])\r\n\r\nto \r\n\r\ntimestamp = datetime.datetime.fromtimestamp(t).strftime(\"%d %b %Y %H:%M:%S\")"}}
{"actor":{"display_login":"st3r30byt3"}}