Commit d7f6877b authored by Your Name's avatar Your Name
Browse files

FTP recon script

parent cee1e372
#!/bin/sh
if [ -n "$1" ]; then
HOST=$1
else
echo "First parameter is the hostname"
exit 1
fi
if [ -n "$2" ]; then
USER=$2
else
echo "Scnd parameter is the username"
exit 1
fi
if [ -n "$3" ]; then
PASSWD=$3
else
echo "3th parameter is the password"
exit 1
fi
if [ -n "$4" ]; then
FILE=$4
else
echo "4th parameter is the file to upload"
exit 1
fi
touch $FILE
echo "# Listing server content"
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
binary
ls -al
quit
END_SCRIPT
echo
echo "# Upload file to check Write access"
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
binary
put $FILE
quit
END_SCRIPT
echo
echo "# Remove uploaded file"
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
binary
delete file.txt
quit
END_SCRIPT
exit 0
\ No newline at end of file
1635507097902 geckodriver INFO Listening on 127.0.0.1:58625
1635507097944 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofile2uIXyn"
*** You are running in headless mode.
1635507136881 geckodriver INFO Listening on 127.0.0.1:54937
1635507136918 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofileEKZmqv"
*** You are running in headless mode.
1635507139361 Marionette INFO Listening on port 37393
1635507139433 Marionette WARN TLS certificate errors will be ignored for this session
1635507144034 Marionette INFO Stopped listening on port 37393
1635507243612 geckodriver INFO Listening on 127.0.0.1:56951
1635507243650 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofiledZ73BE"
*** You are running in headless mode.
1635507245951 Marionette INFO Listening on port 43901
1635507245981 Marionette WARN TLS certificate errors will be ignored for this session
1635507251244 Marionette INFO Stopped listening on port 43901
###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1635508194601 geckodriver INFO Listening on 127.0.0.1:38707
1635508194639 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofilejQYiSC"
*** You are running in headless mode.
1635508196935 Marionette INFO Listening on port 35913
1635508196964 Marionette WARN TLS certificate errors will be ignored for this session
1635508201699 Marionette INFO Stopped listening on port 35913
1635508210512 geckodriver INFO Listening on 127.0.0.1:37659
1635508210548 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofileqwWpPH"
*** You are running in headless mode.
1635508212934 Marionette INFO Listening on port 36489
1635508212968 Marionette WARN TLS certificate errors will be ignored for this session
1635508218102 Marionette INFO Stopped listening on port 36489
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1635508269738 geckodriver INFO Listening on 127.0.0.1:59137
1635508269775 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofileUJPdpK"
*** You are running in headless mode.
1635508272038 Marionette INFO Listening on port 44371
1635508272089 Marionette WARN TLS certificate errors will be ignored for this session
1635508277395 Marionette INFO Stopped listening on port 44371
1635508316965 geckodriver INFO Listening on 127.0.0.1:45641
1635508317002 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofileVKFbGm"
*** You are running in headless mode.
1635508319446 Marionette INFO Listening on port 41785
1635508319552 Marionette WARN TLS certificate errors will be ignored for this session
1635508323729 Marionette INFO Stopped listening on port 41785
1635508333761 geckodriver INFO Listening on 127.0.0.1:44081
1635508333797 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofilefvsLle"
*** You are running in headless mode.
1635508336203 Marionette INFO Listening on port 38155
1635508336214 Marionette WARN TLS certificate errors will be ignored for this session
1635508341440 Marionette INFO Stopped listening on port 38155
1635508381960 geckodriver INFO Listening on 127.0.0.1:44407
1635508381992 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofileA1timp"
*** You are running in headless mode.
1635508384330 Marionette INFO Listening on port 37793
1635508384409 Marionette WARN TLS certificate errors will be ignored for this session
1635508389210 Marionette INFO Stopped listening on port 37793
###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1635508513734 geckodriver INFO Listening on 127.0.0.1:57881
1635508513772 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofilewuzleQ"
*** You are running in headless mode.
1635508516026 Marionette INFO Listening on port 39145
1635508516085 Marionette WARN TLS certificate errors will be ignored for this session
1635508521074 Marionette INFO Stopped listening on port 39145
###!!! [Parent][MessageChannel] Error: (msgtype=0xB000E,name=PBackgroundIDBDatabase::Msg_CloseAfterInvalidationComplete) Channel error: cannot send/recv
1635508576165 geckodriver INFO Listening on 127.0.0.1:60979
1635508576199 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofileuXy5Qy"
*** You are running in headless mode.
1635508578504 Marionette INFO Listening on port 43841
1635508578513 Marionette WARN TLS certificate errors will be ignored for this session
1635508583559 Marionette INFO Stopped listening on port 43841
1635508824240 geckodriver INFO Listening on 127.0.0.1:40667
1635508824276 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofileHhHTfH"
*** You are running in headless mode.
1635508826560 Marionette INFO Listening on port 43595
1635508826598 Marionette WARN TLS certificate errors will be ignored for this session
1635508831495 Marionette INFO Stopped listening on port 43595
1635508835035 geckodriver INFO Listening on 127.0.0.1:58963
1635508835073 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofileDTBGJ5"
*** You are running in headless mode.
1635508837450 Marionette INFO Listening on port 35843
1635508837496 Marionette WARN TLS certificate errors will be ignored for this session
1635508842551 Marionette INFO Stopped listening on port 35843
1635508845091 geckodriver INFO Listening on 127.0.0.1:42219
1635508845124 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofile5pqg5Z"
*** You are running in headless mode.
1635508847422 Marionette INFO Listening on port 36977
1635508847438 Marionette WARN TLS certificate errors will be ignored for this session
1635508852229 Marionette INFO Stopped listening on port 36977
1635508854771 geckodriver INFO Listening on 127.0.0.1:39097
1635508854811 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofile9F1BAl"
*** You are running in headless mode.
1635508857154 Marionette INFO Listening on port 37615
1635508857226 Marionette WARN TLS certificate errors will be ignored for this session
1635508861833 Marionette INFO Stopped listening on port 37615
###!!! [Child][MessageChannel] Error: (msgtype=0x5B000D,name=PHttpChannel::Msg_DeletingChannel) Channel closing: too late to send/recv, messages will be lost
###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1635508865370 geckodriver INFO Listening on 127.0.0.1:43721
1635508865405 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofileF3x927"
*** You are running in headless mode.
1635508867729 Marionette INFO Listening on port 37215
1635508867818 Marionette WARN TLS certificate errors will be ignored for this session
1635508872331 Marionette INFO Stopped listening on port 37215
1635508874858 geckodriver INFO Listening on 127.0.0.1:55121
1635508874893 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofilenoYTHj"
*** You are running in headless mode.
1635508877157 Marionette INFO Listening on port 45913
1635508877214 Marionette WARN TLS certificate errors will be ignored for this session
1635508882406 Marionette INFO Stopped listening on port 45913
1635508950227 geckodriver INFO Listening on 127.0.0.1:41559
1635508950266 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofilehZgL0f"
*** You are running in headless mode.
1635508952636 Marionette INFO Listening on port 44441
1635508952684 Marionette WARN TLS certificate errors will be ignored for this session
1635508957504 Marionette INFO Stopped listening on port 44441
1635508960047 geckodriver INFO Listening on 127.0.0.1:39121
1635508960086 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofileApEeWb"
*** You are running in headless mode.
1635508962458 Marionette INFO Listening on port 34385
1635508962504 Marionette WARN TLS certificate errors will be ignored for this session
1635508967440 Marionette INFO Stopped listening on port 34385
1635508970198 geckodriver INFO Listening on 127.0.0.1:39629
1635508970234 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofileJ3Mg5N"
*** You are running in headless mode.
1635508972761 Marionette INFO Listening on port 32925
1635508972850 Marionette WARN TLS certificate errors will be ignored for this session
1635508977684 Marionette INFO Stopped listening on port 32925
1635508980368 geckodriver INFO Listening on 127.0.0.1:36229
1635508980405 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofileRvlzZJ"
*** You are running in headless mode.
1635508982814 Marionette INFO Listening on port 33487
1635508982843 Marionette WARN TLS certificate errors will be ignored for this session
1635508988008 Marionette INFO Stopped listening on port 33487
1635508991745 geckodriver INFO Listening on 127.0.0.1:50053
1635508991782 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofileLr3qj6"
*** You are running in headless mode.
1635508994153 Marionette INFO Listening on port 36321
1635508994208 Marionette WARN TLS certificate errors will be ignored for this session
1635508999159 Marionette INFO Stopped listening on port 36321
1635509001834 geckodriver INFO Listening on 127.0.0.1:47903
1635509001870 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofileKlmaqF"
*** You are running in headless mode.
1635509004375 Marionette INFO Listening on port 46225
1635509004408 Marionette WARN TLS certificate errors will be ignored for this session
1635509009431 Marionette INFO Stopped listening on port 46225
1635509060923 geckodriver INFO Listening on 127.0.0.1:42859
1635509060962 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofile0dNgT5"
*** You are running in headless mode.
1635509063500 Marionette INFO Listening on port 32863
1635509063584 Marionette WARN TLS certificate errors will be ignored for this session
1635509068383 Marionette INFO Stopped listening on port 32863
1635509071050 geckodriver INFO Listening on 127.0.0.1:51071
1635509071084 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofileSH8q84"
*** You are running in headless mode.
1635509073519 Marionette INFO Listening on port 42717
1635509073601 Marionette WARN TLS certificate errors will be ignored for this session
1635509078399 Marionette INFO Stopped listening on port 42717
###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1635509081105 geckodriver INFO Listening on 127.0.0.1:38553
1635509081146 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofileWvFiT0"
*** You are running in headless mode.
1635509083601 Marionette INFO Listening on port 40639
1635509083663 Marionette WARN TLS certificate errors will be ignored for this session
1635509088369 Marionette INFO Stopped listening on port 40639
###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1635509091066 geckodriver INFO Listening on 127.0.0.1:44373
1635509091104 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofilegFONdk"
*** You are running in headless mode.
1635509093524 Marionette INFO Listening on port 46729
1635509093616 Marionette WARN TLS certificate errors will be ignored for this session
1635509099473 Marionette INFO Stopped listening on port 46729
1635509102017 geckodriver INFO Listening on 127.0.0.1:47865
1635509102052 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofilewxwpxm"
*** You are running in headless mode.
1635509104618 Marionette INFO Listening on port 38219
1635509104666 Marionette WARN TLS certificate errors will be ignored for this session
1635509111211 Marionette INFO Stopped listening on port 38219
1635509114855 geckodriver INFO Listening on 127.0.0.1:58767
1635509114888 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofilewj0zmW"
*** You are running in headless mode.
1635509117213 Marionette INFO Listening on port 40179
1635509117301 Marionette WARN TLS certificate errors will be ignored for this session
1635509121956 Marionette INFO Stopped listening on port 40179
1635510277269 geckodriver INFO Listening on 127.0.0.1:55417
1635510277316 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofile50JxDU"
*** You are running in headless mode.
1635510279781 Marionette INFO Listening on port 39391
1635510279835 Marionette WARN TLS certificate errors will be ignored for this session
1635510286179 Marionette INFO Stopped listening on port 39391
1635510288739 geckodriver INFO Listening on 127.0.0.1:47681
1635510288779 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofilerfXp7T"
*** You are running in headless mode.
1635510291216 Marionette INFO Listening on port 35551
1635510291294 Marionette WARN TLS certificate errors will be ignored for this session
1635510299623 Marionette INFO Stopped listening on port 35551
###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1635510302200 geckodriver INFO Listening on 127.0.0.1:53717
1635510302254 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofileVs5J8e"
*** You are running in headless mode.
1635510304545 Marionette INFO Listening on port 40031
1635510304574 Marionette WARN TLS certificate errors will be ignored for this session
1635510315513 Marionette INFO Stopped listening on port 40031
###!!! [Parent][MessageChannel] Error: (msgtype=0xB000E,name=PBackgroundIDBDatabase::Msg_CloseAfterInvalidationComplete) Channel error: cannot send/recv
1635510318078 geckodriver INFO Listening on 127.0.0.1:40967
1635510318117 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofilenMAbYx"
*** You are running in headless mode.
1635510320470 Marionette INFO Listening on port 37451
1635510320541 Marionette WARN TLS certificate errors will be ignored for this session
1635510328102 Marionette INFO Stopped listening on port 37451
1635510438619 geckodriver INFO Listening on 127.0.0.1:49215
1635510438658 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofileecqxEl"
*** You are running in headless mode.
1635510440906 Marionette INFO Listening on port 43367
1635510440977 Marionette WARN TLS certificate errors will be ignored for this session
1635510449064 Marionette INFO Stopped listening on port 43367
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1635511492388 geckodriver INFO Listening on 127.0.0.1:36531
1635511492427 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofile7r9oLX"
*** You are running in headless mode.
1635511494853 Marionette INFO Listening on port 45235
1635511494942 Marionette WARN TLS certificate errors will be ignored for this session
1635511501321 Marionette INFO Stopped listening on port 45235
###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1635511524308 geckodriver INFO Listening on 127.0.0.1:47369
1635511524361 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofilesHjJQi"
*** You are running in headless mode.
1635511526749 Marionette INFO Listening on port 35751
1635511526792 Marionette WARN TLS certificate errors will be ignored for this session
1635511532803 Marionette INFO Stopped listening on port 35751
###!!! [Child][MessageChannel] Error: (msgtype=0x6B0029,name=PNecko::Msg_RemoveRequestContext) Channel closing: too late to send/recv, messages will be lost
OpenSSH 8.2p1 Ubuntu 4ubuntu0.1
Apache httpd 2.4.41
Apache httpd
#!/bin/bash
cat nmap_all_ports.gnmap | grep -o -E 'Ports: .*'| sed 's/Ports: //g' | sed 's/\tIgnored State/\,\ /g'| sed 's/\/\, /\n/g' | grep -E '[0-9]{1,5}' | grep -v 'filtered' | cut -d'/' -f 7 | cut -d '(' -f 1 > ./list_software_version.txt
cat $1 | grep -o -E 'Ports: .*'| sed 's/Ports: //g' | sed 's/\tIgnored State/\,\ /g'| sed 's/\/\, /\n/g' | grep -E '[0-9]{1,5}' | grep -v 'filtered' | cut -d'/' -f 7 | cut -d '(' -f 1 > ./list_software_version.txt
input="./list_software_version.txt"
while IFS= read -r line
......@@ -16,7 +16,8 @@ do
echo "========================"
echo "search for: $search_string"
echo "========================"
searchsploit $search_string
#searchsploit $search_string
/usr/bin/python3 /opt/MyOwnPentestToolsByAGS/selenium_vuln_miner.py "intext:CVE $search_string"
echo "#####################"
else
......@@ -26,7 +27,7 @@ do
echo "========================"
echo "search for: $search_string"
echo "========================"
searchsploit $search_string
/usr/bin/python3 /opt/MyOwnPentestToolsByAGS/selenium_vuln_miner.py "intext:CVE $search_string"
echo "#####################"
echo
echo
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment