IoTGoat
                                
                                
                                
                                    IoTGoat copied to clipboard
                            
                            
                            
                        Not able to build from source
Hello. I am facing an error while building from the source. The error is regarding absence of gcc and g++ but in my kali linux virtual machine I have gcc and g++ v13.1.0.
I was able to compile from source after a lot of troubleshooting and code patching. I'd recommend using the images from the IotGoat Releases for ease of use.
For solution to the above problem, edit the file ./include/prereq-build.mk from the directory you're in the image, and change the gcc and g++ values to point to respective binaries on your system. For e.g. I added gcc-9 and g++-9 to the list and was able to solve the above bug.
But, as I said there is a lot more troubleshooting to do after fixing the above.
Its been awhile since building IoTGoat from source. Id recommend using Ubuntu over Kali for building but there might be toolchain updates that could cause conflicts which you both might be experiencing.
@Xhoenix I luckily solved the gcc issue. right now i am facing this while making menuconfig.
adityakrishna@a-lucard:~/kichu/owasp/IoTGoat/OpenWrt/openwrt-18.06.2$ make menuconfig
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-mesh-openssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-mesh-wolfssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-mini', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-openssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-wolfssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpa-supplicant', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpa-supplicant-mesh-openssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpa-supplicant-mesh-wolfssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpa-supplicant-mini', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpa-supplicant-p2p', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpa-supplicant-openssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpa-supplicant-wolfssl||', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_hostapd-mini', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_hostapd-openssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_hostapd-wolfssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-mesh-openssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-mesh-wolfssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-mini', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-openssl', which does not exist
WARNING: Makefile 'package/network/services/hostapd/Makefile' has a dependency on 'PACKAGE_wpad-wolfssl||', which does not exist
tmp/.config-package.in:86722: syntax error
tmp/.config-package.in:86721: invalid option
tmp/.config-package.in:90856: syntax error
tmp/.config-package.in:90855: invalid option
make: *** [/home/adityakrishna/kichu/owasp/IoTGoat/OpenWrt/openwrt-18.06.2/include/toplevel.mk:137: menuconfig] Error 1
I tried using the IOTgoat latest releases only.