{"action":"created","issue":{"url":"https://api.github.com/repos/mauri870/ransomware/issues/3","repository_url":"https://api.github.com/repos/mauri870/ransomware","labels_url":"https://api.github.com/repos/mauri870/ransomware/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/mauri870/ransomware/issues/3/comments","events_url":"https://api.github.com/repos/mauri870/ransomware/issues/3/events","html_url":"https://github.com/mauri870/ransomware/issues/3","id":181385107,"number":3,"title":"Tor static link and cross compilation","user":{"login":"mauri870","id":10168637,"avatar_url":"https://avatars.githubusercontent.com/u/10168637?v=3","gravatar_id":"","url":"https://api.github.com/users/mauri870","html_url":"https://github.com/mauri870","followers_url":"https://api.github.com/users/mauri870/followers","following_url":"https://api.github.com/users/mauri870/following{/other_user}","gists_url":"https://api.github.com/users/mauri870/gists{/gist_id}","starred_url":"https://api.github.com/users/mauri870/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauri870/subscriptions","organizations_url":"https://api.github.com/users/mauri870/orgs","repos_url":"https://api.github.com/users/mauri870/repos","events_url":"https://api.github.com/users/mauri870/events{/privacy}","received_events_url":"https://api.github.com/users/mauri870/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mauri870/ransomware/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/mauri870/ransomware/labels/help%20wanted","name":"help wanted","color":"128A0C"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-10-06T11:00:23Z","updated_at":"2016-10-10T11:51:57Z","closed_at":null,"body":"Hi guys, I've found some problems with the compilation  with tor statically linked on the malware. I'm on [this feature](https://github.com/mauri870/ransomware/tree/feature/tor-link)\r\n\r\nIt's currently working on linux but the malware is only for windows so we need make the cross compilation.\r\n\r\nThe [Makefile](https://github.com/mauri870/ransomware/blob/feature/tor-link/Makefile) has been updated to download tor and it's dependecies and compile then.\r\nThe [malware](https://github.com/mauri870/ransomware/blob/feature/tor-link/cmd/ransomware/ransomware.go#L26-L63) is now importing the main C code of tor and start it.\r\n\r\nI'm compiling with the following command:\r\n```\r\ngo build --ldflags '-extldflags \"-static\"' -o $(BIN_DIR)/ransomware\r\n```\r\n\r\nAnd I got it working with no problems\r\nBut when I try to compile for windows...\r\n```\r\nenv GOOS=windows CGO_ENABLED=1 go build --ldflags '-extldflags \"-static\" -H windowsgui' -o $(BIN_DIR)/ransomware.exe\r\n\r\nInvalid option --mthreads\r\n```\r\n\r\nWell, I update this command to use mingw:\r\n```\r\nenv GOOS=windows CGO_ENABLED=1 GOARCH=386 CC=i686-w64-mingw32-gcc go build --ldflags '-extldflags \"-static\" -H windowsgui' -o $(BIN_DIR)/ransomware.exe\r\n```\r\nAnd it thrown errors like `netdb.h` not found (WTF it is on the standard library :|)\r\n\r\nThen if I add `-I/usr/include` to the CFLAGS on the malware I receive a bunch of warnings for conflicts with methods :(\r\n\r\nIf anyone has knowledge to help I would appreciate, cheers!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mauri870/ransomware/issues/comments/252597273","html_url":"https://github.com/mauri870/ransomware/issues/3#issuecomment-252597273","issue_url":"https://api.github.com/repos/mauri870/ransomware/issues/3","id":252597273,"user":{"login":"Hanoosh","id":7870032,"avatar_url":"https://avatars.githubusercontent.com/u/7870032?v=3","gravatar_id":"","url":"https://api.github.com/users/Hanoosh","html_url":"https://github.com/Hanoosh","followers_url":"https://api.github.com/users/Hanoosh/followers","following_url":"https://api.github.com/users/Hanoosh/following{/other_user}","gists_url":"https://api.github.com/users/Hanoosh/gists{/gist_id}","starred_url":"https://api.github.com/users/Hanoosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hanoosh/subscriptions","organizations_url":"https://api.github.com/users/Hanoosh/orgs","repos_url":"https://api.github.com/users/Hanoosh/repos","events_url":"https://api.github.com/users/Hanoosh/events{/privacy}","received_events_url":"https://api.github.com/users/Hanoosh/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T11:51:57Z","updated_at":"2016-10-10T11:51:57Z","body":"you got Tor linked for windows ? "}}
{"actor":{"display_login":"Hanoosh"}}