{"action":"created","issue":{"url":"https://api.github.com/repos/nccgroup/metasploitavevasion/issues/5","labels_url":"https://api.github.com/repos/nccgroup/metasploitavevasion/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/nccgroup/metasploitavevasion/issues/5/comments","events_url":"https://api.github.com/repos/nccgroup/metasploitavevasion/issues/5/events","html_url":"https://github.com/nccgroup/metasploitavevasion/issues/5","id":93593977,"number":5,"title":"Something went wrong trying to compile the executable, exiting","user":{"login":"fnk0c","id":8636581,"avatar_url":"https://avatars.githubusercontent.com/u/8636581?v=3","gravatar_id":"","url":"https://api.github.com/users/fnk0c","html_url":"https://github.com/fnk0c","followers_url":"https://api.github.com/users/fnk0c/followers","following_url":"https://api.github.com/users/fnk0c/following{/other_user}","gists_url":"https://api.github.com/users/fnk0c/gists{/gist_id}","starred_url":"https://api.github.com/users/fnk0c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnk0c/subscriptions","organizations_url":"https://api.github.com/users/fnk0c/orgs","repos_url":"https://api.github.com/users/fnk0c/repos","events_url":"https://api.github.com/users/fnk0c/events{/privacy}","received_events_url":"https://api.github.com/users/fnk0c/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-07T18:13:14Z","updated_at":"2015-09-07T09:23:45Z","closed_at":null,"body":"Got an error while trying to generate an payload\r\n\r\n    [franco@Arch ~]$ metasploitavevasion \r\n    ##################################################################\r\n    \r\n    *** AV0id - Metasploit Shell A.V. Avoider Version 1.5  ***\r\n    \r\n    ##################################################################\r\n    ---------------------------------------------------------------------------------------------------------\r\n    [?] What system do you want the Metasploit listenter to run on? Enter 1 or 2 and press enter\r\n    ---------------------------------------------------------------------------------------------------------\r\n    \r\n     1. Use my current system and IP address\r\n    \r\n     2. Use an alternative system, i.e public external address\r\n    \r\n    ---------------------------------------------------------------------------------------------------------\r\n    \r\n    > 2\r\n    \r\n    [-] Alternative system selected\r\n    \r\n    --------------------------------------------------------------------\r\n    [?] What IP address to you want the listener to run on?\r\n    --------------------------------------------------------------------\r\n    \r\n    > 192.168.0.19\r\n    \r\n    ---------------------------------------------------------------------------------------------------------\r\n    [?] What port number do you want to listen on? If on the internet try port 53 if restricted\r\n    ---------------------------------------------------------------------------------------------------------\r\n    \r\n    > 4444\r\n    \r\n    [-] Generating Metasploit payload, please wait...\r\n    \r\n    [ +++++++++++++++++++++++++++++++++++++++++++++++++++++   ]ruby: No such file or directory -- /usr/share/metasploit/msfpayload (LoadError)\r\n    \r\n    --------------------------------------------------------------------------------------------\r\n    [?] How stealthy do you want the file? Enter 1, 2, 3, 4 or 5 and press enter\r\n    --------------------------------------------------------------------------------------------\r\n    \r\n     1. Normal - about 400K payoad  - fast compile - 13/46 A.V. products detected as malicious\r\n    \r\n     2. Stealth - about 1-2 MB payload - fast compile - 12/46 A.V. products detected as malicious\r\n     \r\n     3. Super Stealth - about 10-20MB payload - fast compile - 11/46 A.V. detected as malicious\r\n    \r\n     4. Insane Stealth - about 50MB payload - slower compile - 10/46 A.V. detected as malicious\r\n    \r\n     5. Desperate Stealth - about 100MB payload - slower compile - Not tested with A.V.\r\n    \r\n    ----------------------------------------------------------------------------------------------\r\n    \r\n    > 3\r\n    \r\n    \r\n    [-] Super Stealth selected, please wait a few seconds\r\n    \r\n    [-] Generating random seed for padding...please wait\r\n    \r\n    [ 01100111001001001110111001101010101010110101001010111 ]\r\n    build.c:5:1: error: expected expression before ‘char’\r\n     char comment[512] = \"\";\r\n     ^\r\n    \r\n    [!] Something went wrong trying to compile the executable, exiting\r\n    \r\n    Script complete, press <enter> to exit\r\n\r\n\r\nRunning on Arch Linux system."},"comment":{"url":"https://api.github.com/repos/nccgroup/metasploitavevasion/issues/comments/138249004","html_url":"https://github.com/nccgroup/metasploitavevasion/issues/5#issuecomment-138249004","issue_url":"https://api.github.com/repos/nccgroup/metasploitavevasion/issues/5","id":138249004,"user":{"login":"lllama","id":598411,"avatar_url":"https://avatars.githubusercontent.com/u/598411?v=3","gravatar_id":"","url":"https://api.github.com/users/lllama","html_url":"https://github.com/lllama","followers_url":"https://api.github.com/users/lllama/followers","following_url":"https://api.github.com/users/lllama/following{/other_user}","gists_url":"https://api.github.com/users/lllama/gists{/gist_id}","starred_url":"https://api.github.com/users/lllama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lllama/subscriptions","organizations_url":"https://api.github.com/users/lllama/orgs","repos_url":"https://api.github.com/users/lllama/repos","events_url":"https://api.github.com/users/lllama/events{/privacy}","received_events_url":"https://api.github.com/users/lllama/received_events","type":"User","site_admin":false},"created_at":"2015-09-07T09:23:45Z","updated_at":"2015-09-07T09:23:45Z","body":"I was able to get something to build on Arch by installing the w64 toolset and then patching avoid.sh to use i686-w64-mingw32-gcc as the compiler.\r\n```\r\npacman -S community/mingw-w64-gcc\r\n```\r\nto install and then the following patch to make the script use it:\r\n```\r\ndiff --git a/avoid.sh b/avoid.sh\r\nold mode 100644\r\nnew mode 100755\r\nindex 99a43f7..26cb6e3\r\n--- a/avoid.sh\r\n+++ b/avoid.sh\r\n@@ -80,7 +80,7 @@ sleep 3\r\n clear\r\n \r\n #Check for gcc compiler\r\n-which i586-mingw32msvc-gcc >/dev/null 2>&1\r\n+which i686-w64-mingw32-gcc >/dev/null 2>&1\r\n if [ $? -eq 0 ]; then\r\n     echo \"\"\r\n else\r\n@@ -283,9 +283,9 @@ echo '}' >> build.c\r\n \r\n ls icons/icon.res >/dev/null 2>&1\r\n if [ $? -eq 0 ]; then\r\n-    i586-mingw32msvc-gcc -Wall -mwindows icons/icon.res build.c -o \"$OUTPUTNAME\"\r\n+    i686-w64-mingw32-gcc -Wall -mwindows icons/icon.res build.c -o \"$OUTPUTNAME\"\r\n else\r\n-    i586-mingw32msvc-gcc -Wall -mwindows build.c -o \"$OUTPUTNAME\"\r\n+    i686-w64-mingw32-gcc -Wall -mwindows build.c -o \"$OUTPUTNAME\"\r\n fi\r\n \r\n # check if file built correctly\r\n```\r\n\r\n*Note* that the script also assuming that ```ifconfig``` will be present for getting the IP address, which might not be the case on Arch. As a work around, you can select the second option and manually supply the IP address."}}