1755211149
This commit is contained in:
@@ -9,7 +9,10 @@ while true; do
|
|||||||
elapsed_time=$((current_time - start_time))
|
elapsed_time=$((current_time - start_time))
|
||||||
elapsed_minutes=$((elapsed_time / 60))
|
elapsed_minutes=$((elapsed_time / 60))
|
||||||
echo -e "\ndate $(date) elapsed_mins $elapsed_minutes count $count delay $delay subnet $subnet\n"
|
echo -e "\ndate $(date) elapsed_mins $elapsed_minutes count $count delay $delay subnet $subnet\n"
|
||||||
nmap -sV -O -Pn -p22 $subnet -oG - | grep -n '22/open/tcp'
|
nmap -sV -O -p22 $subnet -oG - | grep -n '22/open/tcp' # fast on port 22 only with ping sweep
|
||||||
|
# nmap -sV -O -Pn -p22 $subnet -oG - | grep -n '22/open/tcp' # pingless search
|
||||||
|
# nmap -sV -O $subnet -oG - | grep -n '22/open/tcp' # lots of ports search
|
||||||
|
# nmap -sV -O -Pn $subnet -oG - | grep -n '22/open/tcp' # all ports search, pingless, slow
|
||||||
sleep $delay
|
sleep $delay
|
||||||
count=$((count + 1))
|
count=$((count + 1))
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -11,18 +11,18 @@ sudo apt update
|
|||||||
|
|
||||||
# install dkms and rtl dkms
|
# install dkms and rtl dkms
|
||||||
sudo apt-get install dkms -y
|
sudo apt-get install dkms -y
|
||||||
sleep 10 # stupid_error
|
# sleep 10 # stupid_error
|
||||||
sudo apt-get install realtek-rtl88xxau-dkms -y
|
sudo apt-get install realtek-rtl88xxau-dkms -y
|
||||||
|
|
||||||
# download the code
|
# download the code
|
||||||
# catch any submodules, only clone one branch, only download with two jobs to save stress # stupid_error
|
# catch any submodules, only clone one branch, only download with two jobs to save stress # stupid_error
|
||||||
git clone --recursive --single-branch --jobs 2 $git_repo $git_dir
|
git clone --recursive --single-branch --jobs 7 $git_repo $git_dir
|
||||||
sleep 10 # stupid_error
|
# sleep 10 # stupid_error
|
||||||
|
|
||||||
# build it
|
# build it
|
||||||
cd $git_dir # enter the dir
|
cd $git_dir # enter the dir
|
||||||
make # compile it
|
make # compile it
|
||||||
sleep 10 # stupid_error
|
# sleep 10 # stupid_error
|
||||||
|
|
||||||
# install the module
|
# install the module
|
||||||
sudo make install
|
sudo make install
|
||||||
@@ -31,7 +31,7 @@ sleep 10 # stupid_error
|
|||||||
# cleanup
|
# cleanup
|
||||||
cd ~
|
cd ~
|
||||||
rm -rf $git_dir
|
rm -rf $git_dir
|
||||||
sleep 10 # stupid_error
|
# sleep 10 # stupid_error
|
||||||
sudo apt autoremove -y
|
sudo apt autoremove -y
|
||||||
sudo shutdown -r +1 # reboot in 1 minute
|
sudo shutdown -r +1 # reboot in 1 minute
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user