trustedsec / ptf

The Penetration Testers Framework (PTF) is a way for modular support for up-to-date tools.
5.09k stars 1.23k forks source link

issue when trying to install #30

Closed sfzombie13 closed 9 years ago

sfzombie13 commented 9 years ago

i get the following issue when i try to install (screenshot). i got most of the way through it, and believe it is something i run into sometimes where i have to manually select the directory. it is possible that it stems from a cup of coffee on the motherboard, as it will not install an os either, but the fix is generally me hardcoding the directory into the script or whatever. i juat cannot seem to locate this one. if you could point me to the correct file, i can fix it. thanx so much and i look foward to trying the tool out. ptf_error

trustedsec commented 9 years ago

This should now be fixed in the latest pull. Thanks for the report!

sfzombie13 commented 9 years ago

No matter what it looks like, I am not an idiot. I tried again and got new errors. I copied the whole terminal output into a text file so you can look at it to see what happened. Thanx for helping out, you guys rock. Have a great day.

Tim Sayre Kanawha IT Services http://kitswv.com

Onslaught commented 9 years ago

Post the console output here when you get a chance. I have a feeling, the first error is causing the second error.

Run a sudo nano ~/.bash_profile and see if anything funny is in there.

sfzombie13 commented 9 years ago

the .bash_profile file has nothing at all in it, is that strange? this is the terminal output.

gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -DCONFIG_LIBNL -fstack-protector -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude airserv-ng.o common.o osdep/radiotap/radiotap.o -o airserv-ng -Losdep -losdep -lnl
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -DCONFIG_LIBNL -fstack-protector -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude -c -o airtun-ng.o airtun-ng.c gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -DCONFIG_LIBNL -fstack-protector -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude airtun-ng.o common.o crypto.o osdep/radiotap/radiotap.o -o airtun-ng -Losdep -losdep -lnl -lssl -lcrypto gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -DCONFIG_LIBNL -fstack-protector -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude -c -o airbase-ng.o airbase-ng.c gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -DCONFIG_LIBNL -fstack-protector -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude airbase-ng.o common.o crypto.o osdep/radiotap/radiotap.o -o airbase-ng -Losdep -losdep -lnl -lssl -lcrypto -lpthread make[1]: Leaving directory /pentest/wireless/aircrack-ng/src' [*] Sending after command: make strip make -C src strip make[1]: Entering directory/pentest/wireless/aircrack-ng/src' strip aircrack-ng airdecap-ng packetforge-ng ivstools kstats makeivs-ng airdecloak-ng wpaclean besside-ng-crawler aireplay-ng airodump-ng airserv-ng airtun-ng airbase-ng make[1]: Leaving directory /pentest/wireless/aircrack-ng/src' [*] Sending after command: make install make -C src all make[1]: Entering directory/pentest/wireless/aircrack-ng/src' make[1]: Nothing to be done for all'. make[1]: Leaving directory/pentest/wireless/aircrack-ng/src' make -C src install make[1]: Entering directory /pentest/wireless/aircrack-ng/src' make -C osdep install make[2]: Entering directory/pentest/wireless/aircrack-ng/src/osdep' Building for Linux make[3]: Entering directory /pentest/wireless/aircrack-ng/src/osdep' make[3]:.os.Linux' is up to date. make[3]: Leaving directory /pentest/wireless/aircrack-ng/src/osdep' make[2]: Leaving directory/pentest/wireless/aircrack-ng/src/osdep' install -d /usr/local/bin install -m 755 aircrack-ng airdecap-ng packetforge-ng ivstools kstats makeivs-ng airdecloak-ng wpaclean besside-ng-crawler /usr/local/bin install -d /usr/local/sbin install -m 755 aireplay-ng airodump-ng airserv-ng airtun-ng airbase-ng /usr/local/sbin make[1]: Leaving directory /pentest/wireless/aircrack-ng/src' make -C scripts install make[1]: Entering directory/pentest/wireless/aircrack-ng/scripts' install -m 755 airodump-ng-oui-update /usr/local/sbin install -m 755 airmon-ng /usr/local/sbin make[1]: Leaving directory /pentest/wireless/aircrack-ng/scripts' make -C manpages install make[1]: Entering directory/pentest/wireless/aircrack-ng/manpages' make cleanfiles sqlite=true experimental=true make[2]: Entering directory /pentest/wireless/aircrack-ng/manpages' rm -f /usr/local/share/man/man1/aircrack-ng.1 rm -f /usr/local/share/man/man1/airdecap-ng.1 rm -f /usr/local/share/man/man1/ivstools.1 rm -f /usr/local/share/man/man1/kstats.1 rm -f /usr/local/share/man/man1/makeivs-ng.1 rm -f /usr/local/share/man/man1/packetforge-ng.1 rm -f /usr/local/share/man/man1/airdecloak-ng.1 rm -f /usr/local/share/man/man1/wpaclean.1 rm -f /usr/local/share/man/man1/besside-ng-crawler.1 rm -f /usr/local/share/man/man1/airolib-ng.1 rm -f /usr/local/share/man/man1/buddy-ng.1 rm -f /usr/local/share/man/man8/aireplay-ng.8 rm -f /usr/local/share/man/man8/airmon-ng.8 rm -f /usr/local/share/man/man8/airodump-ng.8 rm -f /usr/local/share/man/man8/besside-ng.8 rm -f /usr/local/share/man/man8/airserv-ng.8 rm -f /usr/local/share/man/man8/airtun-ng.8 rm -f /usr/local/share/man/man8/airbase-ng.8 rm -f /usr/local/share/man/man8/airodump-ng-oui-update.8 rm -f /usr/local/share/man/man8/tkiptun-ng.8 rm -f /usr/local/share/man/man8/easside-ng.8 rm -f /usr/local/share/man/man8/wesside-ng.8 make[2]: Leaving directory/pentest/wireless/aircrack-ng/manpages' install -d /usr/local/share/man/man1 install -d /usr/local/share/man/man8 install -m 644 aircrack-ng.1 airdecap-ng.1 ivstools.1 kstats.1 makeivs-ng.1 packetforge-ng.1 airdecloak-ng.1 wpaclean.1 besside-ng-crawler.1 /usr/local/share/man/man1 install -m 644 aireplay-ng.8 airmon-ng.8 airodump-ng.8 besside-ng.8 airserv-ng.8 airtun-ng.8 airbase-ng.8 airodump-ng-oui-update.8 /usr/local/share/man/man8 make[1]: Leaving directory `/pentest/wireless/aircrack-ng/manpages'

[] Run 'airodump-ng-oui-update' as root (or with sudo) to install or update Airodump-ng OUI file (Internet connection required). [] Completed running after commands routine.. [] Updating the tool, be patient while git pull is initiated. Already up-to-date. [] Finished Installing! Enjoy the tool installed under: /pentest/wireless/aircrack-ng/ [] Running after commands for post installation requirements. [] Sending after command: cd /pentest/wireless/aircrack-ng/ [] Sending after command: make make -C src all make[1]: Entering directory /pentest/wireless/aircrack-ng/src' make[1]: Nothing to be done forall'. make[1]: Leaving directory `/pentest/wireless/aircrack-ng/src' [] Sending after command: make strip make -C src strip make[1]: Entering directory /pentest/wireless/aircrack-ng/src' strip aircrack-ng airdecap-ng packetforge-ng ivstools kstats makeivs-ng airdecloak-ng wpaclean besside-ng-crawler aireplay-ng airodump-ng airserv-ng airtun-ng airbase-ng make[1]: Leaving directory/pentest/wireless/aircrack-ng/src' [*] Sending after command: make install make -C src all make[1]: Entering directory /pentest/wireless/aircrack-ng/src' make[1]: Nothing to be done forall'. make[1]: Leaving directory /pentest/wireless/aircrack-ng/src' make -C src install make[1]: Entering directory/pentest/wireless/aircrack-ng/src' make -C osdep install make[2]: Entering directory /pentest/wireless/aircrack-ng/src/osdep' Building for Linux make[3]: Entering directory/pentest/wireless/aircrack-ng/src/osdep' make[3]: .os.Linux' is up to date. make[3]: Leaving directory/pentest/wireless/aircrack-ng/src/osdep' make[2]: Leaving directory /pentest/wireless/aircrack-ng/src/osdep' install -d /usr/local/bin install -m 755 aircrack-ng airdecap-ng packetforge-ng ivstools kstats makeivs-ng airdecloak-ng wpaclean besside-ng-crawler /usr/local/bin install -d /usr/local/sbin install -m 755 aireplay-ng airodump-ng airserv-ng airtun-ng airbase-ng /usr/local/sbin make[1]: Leaving directory/pentest/wireless/aircrack-ng/src' make -C scripts install make[1]: Entering directory /pentest/wireless/aircrack-ng/scripts' install -m 755 airodump-ng-oui-update /usr/local/sbin install -m 755 airmon-ng /usr/local/sbin make[1]: Leaving directory/pentest/wireless/aircrack-ng/scripts' make -C manpages install make[1]: Entering directory /pentest/wireless/aircrack-ng/manpages' make cleanfiles sqlite=true experimental=true make[2]: Entering directory/pentest/wireless/aircrack-ng/manpages' rm -f /usr/local/share/man/man1/aircrack-ng.1 rm -f /usr/local/share/man/man1/airdecap-ng.1 rm -f /usr/local/share/man/man1/ivstools.1 rm -f /usr/local/share/man/man1/kstats.1 rm -f /usr/local/share/man/man1/makeivs-ng.1 rm -f /usr/local/share/man/man1/packetforge-ng.1 rm -f /usr/local/share/man/man1/airdecloak-ng.1 rm -f /usr/local/share/man/man1/wpaclean.1 rm -f /usr/local/share/man/man1/besside-ng-crawler.1 rm -f /usr/local/share/man/man1/airolib-ng.1 rm -f /usr/local/share/man/man1/buddy-ng.1 rm -f /usr/local/share/man/man8/aireplay-ng.8 rm -f /usr/local/share/man/man8/airmon-ng.8 rm -f /usr/local/share/man/man8/airodump-ng.8 rm -f /usr/local/share/man/man8/besside-ng.8 rm -f /usr/local/share/man/man8/airserv-ng.8 rm -f /usr/local/share/man/man8/airtun-ng.8 rm -f /usr/local/share/man/man8/airbase-ng.8 rm -f /usr/local/share/man/man8/airodump-ng-oui-update.8 rm -f /usr/local/share/man/man8/tkiptun-ng.8 rm -f /usr/local/share/man/man8/easside-ng.8 rm -f /usr/local/share/man/man8/wesside-ng.8 make[2]: Leaving directory /pentest/wireless/aircrack-ng/manpages' install -d /usr/local/share/man/man1 install -d /usr/local/share/man/man8 install -m 644 aircrack-ng.1 airdecap-ng.1 ivstools.1 kstats.1 makeivs-ng.1 packetforge-ng.1 airdecloak-ng.1 wpaclean.1 besside-ng-crawler.1 /usr/local/share/man/man1 install -m 644 aireplay-ng.8 airmon-ng.8 airodump-ng.8 besside-ng.8 airserv-ng.8 airtun-ng.8 airbase-ng.8 airodump-ng-oui-update.8 /usr/local/share/man/man8 make[1]: Leaving directory/pentest/wireless/aircrack-ng/manpages'

[] Run 'airodump-ng-oui-update' as root (or with sudo) to install or update Airodump-ng OUI file (Internet connection required). [] Completed running after commands routine.. [] Installing and/or updating: modules/wireless/aircrack [] Detected installation already. Going to upgrade for you. [] Updating depends for modules/wireless/aircrack prior to update. Reading package lists... Done Building dependency tree
Reading state information... Done libsqlite3-dev is already the newest version. libnl-dev is already the newest version. The following packages were automatically installed and are no longer required: icedtea-7-jre-cacao openjdk-7-jre-lib Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. [
] Finished updating depends for modules/wireless/aircrack [] Running after commands for post installation requirements. [] Sending after command: cd /pentest/wireless/aircrack-ng/ [] Sending after command: ./configure /bin/sh: 1: ./configure: not found [] Sending after command: make make -C src all make[1]: Entering directory /pentest/wireless/aircrack-ng/src' make[1]: Nothing to be done forall'. make[1]: Leaving directory /pentest/wireless/aircrack-ng/src' [*] Sending after command: make strip make -C src strip make[1]: Entering directory/pentest/wireless/aircrack-ng/src' strip aircrack-ng airdecap-ng packetforge-ng ivstools kstats makeivs-ng airdecloak-ng wpaclean besside-ng-crawler aireplay-ng airodump-ng airserv-ng airtun-ng airbase-ng make[1]: Leaving directory /pentest/wireless/aircrack-ng/src' [*] Sending after command: make install make -C src all make[1]: Entering directory/pentest/wireless/aircrack-ng/src' make[1]: Nothing to be done for all'. make[1]: Leaving directory/pentest/wireless/aircrack-ng/src' make -C src install make[1]: Entering directory /pentest/wireless/aircrack-ng/src' make -C osdep install make[2]: Entering directory/pentest/wireless/aircrack-ng/src/osdep' Building for Linux make[3]: Entering directory /pentest/wireless/aircrack-ng/src/osdep' make[3]:.os.Linux' is up to date. make[3]: Leaving directory /pentest/wireless/aircrack-ng/src/osdep' make[2]: Leaving directory/pentest/wireless/aircrack-ng/src/osdep' install -d /usr/local/bin install -m 755 aircrack-ng airdecap-ng packetforge-ng ivstools kstats makeivs-ng airdecloak-ng wpaclean besside-ng-crawler /usr/local/bin install -d /usr/local/sbin install -m 755 aireplay-ng airodump-ng airserv-ng airtun-ng airbase-ng /usr/local/sbin make[1]: Leaving directory /pentest/wireless/aircrack-ng/src' make -C scripts install make[1]: Entering directory/pentest/wireless/aircrack-ng/scripts' install -m 755 airodump-ng-oui-update /usr/local/sbin install -m 755 airmon-ng /usr/local/sbin make[1]: Leaving directory /pentest/wireless/aircrack-ng/scripts' make -C manpages install make[1]: Entering directory/pentest/wireless/aircrack-ng/manpages' make cleanfiles sqlite=true experimental=true make[2]: Entering directory /pentest/wireless/aircrack-ng/manpages' rm -f /usr/local/share/man/man1/aircrack-ng.1 rm -f /usr/local/share/man/man1/airdecap-ng.1 rm -f /usr/local/share/man/man1/ivstools.1 rm -f /usr/local/share/man/man1/kstats.1 rm -f /usr/local/share/man/man1/makeivs-ng.1 rm -f /usr/local/share/man/man1/packetforge-ng.1 rm -f /usr/local/share/man/man1/airdecloak-ng.1 rm -f /usr/local/share/man/man1/wpaclean.1 rm -f /usr/local/share/man/man1/besside-ng-crawler.1 rm -f /usr/local/share/man/man1/airolib-ng.1 rm -f /usr/local/share/man/man1/buddy-ng.1 rm -f /usr/local/share/man/man8/aireplay-ng.8 rm -f /usr/local/share/man/man8/airmon-ng.8 rm -f /usr/local/share/man/man8/airodump-ng.8 rm -f /usr/local/share/man/man8/besside-ng.8 rm -f /usr/local/share/man/man8/airserv-ng.8 rm -f /usr/local/share/man/man8/airtun-ng.8 rm -f /usr/local/share/man/man8/airbase-ng.8 rm -f /usr/local/share/man/man8/airodump-ng-oui-update.8 rm -f /usr/local/share/man/man8/tkiptun-ng.8 rm -f /usr/local/share/man/man8/easside-ng.8 rm -f /usr/local/share/man/man8/wesside-ng.8 make[2]: Leaving directory/pentest/wireless/aircrack-ng/manpages' install -d /usr/local/share/man/man1 install -d /usr/local/share/man/man8 install -m 644 aircrack-ng.1 airdecap-ng.1 ivstools.1 kstats.1 makeivs-ng.1 packetforge-ng.1 airdecloak-ng.1 wpaclean.1 besside-ng-crawler.1 /usr/local/share/man/man1 install -m 644 aireplay-ng.8 airmon-ng.8 airodump-ng.8 besside-ng.8 airserv-ng.8 airtun-ng.8 airbase-ng.8 airodump-ng-oui-update.8 /usr/local/share/man/man8 make[1]: Leaving directory `/pentest/wireless/aircrack-ng/manpages'

[] Run 'airodump-ng-oui-update' as root (or with sudo) to install or update Airodump-ng OUI file (Internet connection required). [] Sending after command: exit"" [] Completed running after commands routine.. [] Updating the tool, be patient while git pull is initiated. Already up-to-date. [] Finished Installing! Enjoy the tool installed under: /pentest/wireless/aircrack-ng/ [] Running after commands for post installation requirements. [] Sending after command: cd /pentest/wireless/aircrack-ng/ [] Sending after command: ./configure /bin/sh: 1: ./configure: not found [] Sending after command: make make -C src all make[1]: Entering directory /pentest/wireless/aircrack-ng/src' make[1]: Nothing to be done forall'. make[1]: Leaving directory `/pentest/wireless/aircrack-ng/src' [] Sending after command: make strip make -C src strip make[1]: Entering directory /pentest/wireless/aircrack-ng/src' strip aircrack-ng airdecap-ng packetforge-ng ivstools kstats makeivs-ng airdecloak-ng wpaclean besside-ng-crawler aireplay-ng airodump-ng airserv-ng airtun-ng airbase-ng make[1]: Leaving directory/pentest/wireless/aircrack-ng/src' [*] Sending after command: make install make -C src all make[1]: Entering directory /pentest/wireless/aircrack-ng/src' make[1]: Nothing to be done forall'. make[1]: Leaving directory /pentest/wireless/aircrack-ng/src' make -C src install make[1]: Entering directory/pentest/wireless/aircrack-ng/src' make -C osdep install make[2]: Entering directory /pentest/wireless/aircrack-ng/src/osdep' Building for Linux make[3]: Entering directory/pentest/wireless/aircrack-ng/src/osdep' make[3]: .os.Linux' is up to date. make[3]: Leaving directory/pentest/wireless/aircrack-ng/src/osdep' make[2]: Leaving directory /pentest/wireless/aircrack-ng/src/osdep' install -d /usr/local/bin install -m 755 aircrack-ng airdecap-ng packetforge-ng ivstools kstats makeivs-ng airdecloak-ng wpaclean besside-ng-crawler /usr/local/bin install -d /usr/local/sbin install -m 755 aireplay-ng airodump-ng airserv-ng airtun-ng airbase-ng /usr/local/sbin make[1]: Leaving directory/pentest/wireless/aircrack-ng/src' make -C scripts install make[1]: Entering directory /pentest/wireless/aircrack-ng/scripts' install -m 755 airodump-ng-oui-update /usr/local/sbin install -m 755 airmon-ng /usr/local/sbin make[1]: Leaving directory/pentest/wireless/aircrack-ng/scripts' make -C manpages install make[1]: Entering directory /pentest/wireless/aircrack-ng/manpages' make cleanfiles sqlite=true experimental=true make[2]: Entering directory/pentest/wireless/aircrack-ng/manpages' rm -f /usr/local/share/man/man1/aircrack-ng.1 rm -f /usr/local/share/man/man1/airdecap-ng.1 rm -f /usr/local/share/man/man1/ivstools.1 rm -f /usr/local/share/man/man1/kstats.1 rm -f /usr/local/share/man/man1/makeivs-ng.1 rm -f /usr/local/share/man/man1/packetforge-ng.1 rm -f /usr/local/share/man/man1/airdecloak-ng.1 rm -f /usr/local/share/man/man1/wpaclean.1 rm -f /usr/local/share/man/man1/besside-ng-crawler.1 rm -f /usr/local/share/man/man1/airolib-ng.1 rm -f /usr/local/share/man/man1/buddy-ng.1 rm -f /usr/local/share/man/man8/aireplay-ng.8 rm -f /usr/local/share/man/man8/airmon-ng.8 rm -f /usr/local/share/man/man8/airodump-ng.8 rm -f /usr/local/share/man/man8/besside-ng.8 rm -f /usr/local/share/man/man8/airserv-ng.8 rm -f /usr/local/share/man/man8/airtun-ng.8 rm -f /usr/local/share/man/man8/airbase-ng.8 rm -f /usr/local/share/man/man8/airodump-ng-oui-update.8 rm -f /usr/local/share/man/man8/tkiptun-ng.8 rm -f /usr/local/share/man/man8/easside-ng.8 rm -f /usr/local/share/man/man8/wesside-ng.8 make[2]: Leaving directory /pentest/wireless/aircrack-ng/manpages' install -d /usr/local/share/man/man1 install -d /usr/local/share/man/man8 install -m 644 aircrack-ng.1 airdecap-ng.1 ivstools.1 kstats.1 makeivs-ng.1 packetforge-ng.1 airdecloak-ng.1 wpaclean.1 besside-ng-crawler.1 /usr/local/share/man/man1 install -m 644 aireplay-ng.8 airmon-ng.8 airodump-ng.8 besside-ng.8 airserv-ng.8 airtun-ng.8 airbase-ng.8 airodump-ng-oui-update.8 /usr/local/share/man/man8 make[1]: Leaving directory/pentest/wireless/aircrack-ng/manpages'

[] Run 'airodump-ng-oui-update' as root (or with sudo) to install or update Airodump-ng OUI file (Internet connection required). [] Sending after command: exit"" [] Completed running after commands routine.. [] Installing and/or updating: modules/wireless/wifite [] Detected installation already. Going to upgrade for you. [] Updating depends for modules/wireless/wifite prior to update. Reading package lists... Done Building dependency tree
Reading state information... Done The following packages were automatically installed and are no longer required: icedtea-7-jre-cacao openjdk-7-jre-lib Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. [] Finished updating depends for modules/wireless/wifite [] Updating the tool, be patient while git pull is initiated. Already up-to-date. [] Finished Installing! Enjoy the tool installed under: /pentest/wireless/wifite/ [] Installing and/or updating: modules/exploitation/exploit-db [] Tool not installed yet, will run through install routine [] Preparing dependencies for module: modules/exploitation/exploit-db Reading package lists... Done Building dependency tree
Reading state information... Done git is already the newest version. The following packages were automatically installed and are no longer required: icedtea-7-jre-cacao openjdk-7-jre-lib Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. [] Pre-reqs for modules/exploitation/exploit-db have been installed. [] Making the appropriate directory structure first [*] GIT was the selected method for installation... Using GIT to install. Cloning into '/pentest/exploitation/exploit-db'...

[] Finished Installing! Enjoy the tool located under: /pentest/exploitation/exploit-db/ [] Running after commands for post installation requirements. [] Completed running after commands routine.. [] Installing and/or updating: modules/exploitation/sqlmap [] Detected installation already. Going to upgrade for you. [] Updating depends for modules/exploitation/sqlmap prior to update. Reading package lists... Done Building dependency tree
Reading state information... Done git is already the newest version. The following packages were automatically installed and are no longer required: icedtea-7-jre-cacao openjdk-7-jre-lib Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. [] Finished updating depends for modules/exploitation/sqlmap [] Updating the tool, be patient while git pull is initiated. Updating 3a5cc98..75ed5f7 Fast-forward lib/controller/checks.py | 48 ++++++++---- lib/controller/controller.py | 76 +++++++++--------- lib/core/common.py | 21 ++--- lib/core/dicts.py | 11 ++- lib/core/dump.py | 2 - lib/core/option.py | 4 +- lib/core/optiondict.py | 1 + lib/core/settings.py | 3 +- lib/core/shell.py | 4 +- lib/core/target.py | 84 +++++++++----------- lib/parse/cmdline.py | 6 +- lib/parse/payloads.py | 3 - lib/request/connect.py | 34 +++++---- lib/request/httpshandler.py | 1 - lib/request/inject.py | 14 ++-- lib/takeover/udf.py | 3 + lib/techniques/union/test.py | 131 ++++++++++++++++---------------- lib/utils/api.py | 1 - lib/utils/crawler.py | 3 - lib/utils/hash.py | 1 - lib/utils/sqlalchemy.py | 1 - plugins/dbms/mssqlserver/filesystem.py | 1 - plugins/generic/databases.py | 45 +++++------ plugins/generic/filesystem.py | 2 +- sqlmap.conf | 6 +- sqlmap.py | 2 - waf/360.py | 1 - waf/anquanbao.py | 1 - waf/baidu.py | 1 - waf/edgecast.py | 6 +- waf/safedog.py | 1 - waf/senginx.py | 3 - waf/sucuri.py | 6 +- 33 files changed, 274 insertions(+), 253 deletions(-) [!] Install did not complete. Printing error: From https://github.com/sqlmapproject/sqlmap 3a5cc98..75ed5f7 master -> origin/master [] Installing and/or updating: modules/exploitation/metasploit [] Tool not installed yet, will run through install routine [] Preparing dependencies for module: modules/exploitation/metasploit Reading package lists... Done Building dependency tree
Reading state information... Done curl is already the newest version. libxml2-dev is already the newest version. libyaml-dev is already the newest version. openjdk-7-jre is already the newest version. libssl-dev is already the newest version. libpq-dev is already the newest version. libpq5 is already the newest version. libsqlite3-dev is already the newest version. autoconf is already the newest version. build-essential is already the newest version. git-core is already the newest version. libpcap-dev is already the newest version. libxslt1-dev is already the newest version. nmap is already the newest version. pgadmin3 is already the newest version. postgresql is already the newest version. libreadline5 is already the newest version. libreadline-dev is already the newest version. zlib1g-dev is already the newest version. The following packages were automatically installed and are no longer required: icedtea-7-jre-cacao openjdk-7-jre-lib Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. [
] Pre-reqs for modules/exploitation/metasploit have been installed. [] Making the appropriate directory structure first [] GIT was the selected method for installation... Using GIT to install. Cloning into '/pentest/exploitation/framework3'...

[] Finished Installing! Enjoy the tool located under: /pentest/exploitation/framework3/ [] Running after commands for post installation requirements. [] Sending after command: cd /pentest/exploitation/framework3/ [] Sending after command: curl -L https://get.rvm.io | gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | bash -s stable gpg: keyring `/root/.gnupg/secring.gpg' created gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 184 100 184 0 0 575 0 --:--:-- --:--:-- --:--:-- 814 100 22721 100 22721 0 0 35750 0 --:--:-- --:--:-- --:--:-- 35750 gpg: /root/.gnupg/trustdb.gpg: trustdb created gpg: key D39DC0E3: public key "Michal Papis (RVM signing) mpapis@gmail.com" imported gpg: no ultimately trusted keys found gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) [] Sending after command: source ~/.rvm/scripts/rvm /bin/sh: 1: source: not found [] Sending after command: echo source ~/.rvm/scripts/rvm" >> ~/.bashrc /bin/sh: 1: Syntax error: Unterminated quoted string [] Sending after command: source ~/.bashrc /bin/sh: 1: source: not found [] Sending after command: rvm install 2.1.6 /bin/sh: 1: rvm: not found [] Sending after command: rvm use 2.1.6 --default /bin/sh: 1: rvm: not found [] Sending after command: ruby -v ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] [*] Sending after command: cd ~ [!] DANGER WILL ROBINSON. DANGER WILL ROBINSON. Error has occured. [!] It's not possible its due to my coding skillz, it must be you? :-) [!] Printing that error. Get that error. You get it: [Errno 2] No such file or directory: '~' root@roland:/home/tim/ptf# ls

sfzombie13 commented 9 years ago

upon further inspection, that is the same error. it has to be my box, not your code. at least now you have the whole thing to see what caused the error, but i am pretty sure it is me. nothing i ever try is easy, but i do learn a lot more this way. i wouldn't know what to do if something worked the first time with no mods. sometimes it is tiring though, like when i need to do something quickly. much as i hate to admit, sometimes i just put my windows hard drive back in and go from there. thanx for helping out.

MikeDawg commented 9 years ago

Looking at your output, I would probably guess its something shell specific, which could be either end. But, questions to you sfzombie13, are you running this in a bash shell?

I guess the question for the trustedsec team, would be, are you calling out the bash shell specifically, (I haven't had a chance to dig into the code, as of yet)?

Looking a little more at the output, would it make sense, to issue the commands to /bin/bash as opposed to /bin/sh or do you forsee that as losing some interoperability?

sfzombie13 commented 9 years ago
                                                                                  Yes, it is the root terminal on a Debian Wheezy install. I do know that I have had issues before when using the tilde instead of the full path and was going to jump in and change the lines of code that called that, but looking at the whole thing, that may not be the case here. It is most likely me, as I have other issues here, like the shutdown option disappeared from the computer and now I have to open a terminal and type halt to shut down. Anyway, thank for looking at it. Have a great day.                                                                                                                                                                                                                                                                                                                                        Tim Sayre http://kitswv.com                                                                                                                                                                                                                From: MikeDawgSent: Wednesday, July 22, 2015 1:37 PMTo: trustedsec/ptfReply To: trustedsec/ptfCc: timSubject: Re: [ptf] issue when trying to install (#30)Looking at the code, I would probably guess its something shell specific, which could be either end. But, questions to you sfzombie13, are you running this in a bash shell?

I guess the question for the trustedsec team, would be, are you calling out the bash shell specifically, (I haven't had a chance to dig into the code, as of yet)?

—Reply to this email directly or view it on GitHub.

Onslaught commented 9 years ago

The command source ~/.bashrc is not able to run. I THINK because it is in a subprocess, then the 'cd ~' is not running because it doesn't understand the alias or because it doesn't like subprocesses. I can take a look at it later. I think that it will just require a line or two in /ptf/src/commands.py

MikeDawg commented 9 years ago

So, its not taking "source" either, which is a built-in command for bash, and I don't get that.

Onslaught commented 9 years ago

It's not technically Bash. The after commands are run inside python as subprocesses so bash commands and aliases like '~' for the user directory need to be defined in the code for the after commands.

MikeDawg commented 9 years ago

Ah, ok, thanks for pointing that out.

sfzombie13 commented 9 years ago

I have had problems in the past using commands inside bash which should have been there. Example, when using a normal terminal, I couldn't use a command which I knew was there (forgot the specific one), but had to use the full path, like "/bin/bash" instead of just "". Like instead of using "cat /etc/apt/sources.list" I would have to type "/bin/bash/cat /etc/apt/sources.list" in order to work. I think that was a problem with the path though, and I have not had that problem for a while now. Also, I have had problems with this system not installing an OS, I have to take the hard drive and put it in another computer and install it, then put the hard drive back and load the drivers. If you figure it out, that would be great, but I don't suspect that you will find a lot of people having this issue so you may not want to waste too much time on it, but I would appreciate it.

also, in the ptf file, you have "print ("[!] You can also run ptf with the --no-network-connection agument to bypass the network check.")" twice, not sure if it prints twice though, i haven't gotten that far.

sfzombie13 commented 8 years ago

after a very mind clearing and rejuvenating derbycon, i came back and got a clean install of the ptf, same os, same hardware. i will analyze the logs and hopefully submit an answer to help avoid this issue in the future.