渗透测试脚本

渗透测试脚本
pull/4/head
InfoSec 2018-04-01 18:30:32 +08:00
parent be3ffbc999
commit 8ea2f263d2
14 changed files with 155 additions and 155 deletions

View File

@ -1,30 +1,30 @@
FIRST STEP
service postgresql start
service metasploit start
service metasploit stop ( turn to the third step if once you done it )
SECOND STEP
msfdb init
MSF_DATABASE_CONFIG
THIRD STEP
/etc/init.d/postgresql start
armitage
PROBLEM SOLVE
apt-get cleanup
apt-get update && apt-get upgrade
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Դ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ч<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ظ<EFBFBD><EFBFBD>°<EFBFBD><EFBFBD><EFBFBD>װ
1. head over to http://www.fastandeasyhacking.com/download and download the tgz file
2. cd /root/Downloads
3. tar -xf armitage150813.tgz
4. now head over to usr/share/armitage and replace all the files in that folder with you files you just downloaded and extracted.
5. reboot
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Armitageǰ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫִ<EFBFBD><EFBFBD> /etc/init.d/postgresql start <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD>ݿ⣬<DDBF><E2A3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
FIRST STEP
service postgresql start
service metasploit start
service metasploit stop ( turn to the third step if once you done it )
SECOND STEP
msfdb init
MSF_DATABASE_CONFIG
THIRD STEP
/etc/init.d/postgresql start
armitage
PROBLEM SOLVE
apt-get cleanup
apt-get update && apt-get upgrade
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Դ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ч<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ظ<EFBFBD><EFBFBD>°<EFBFBD><EFBFBD><EFBFBD>װ
1. head over to http://www.fastandeasyhacking.com/download and download the tgz file
2. cd /root/Downloads
3. tar -xf armitage150813.tgz
4. now head over to usr/share/armitage and replace all the files in that folder with you files you just downloaded and extracted.
5. reboot
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Armitageǰ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫִ<EFBFBD><EFBFBD> /etc/init.d/postgresql start <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD>ݿ⣬<DDBF><E2A3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>

View File

@ -1,44 +1,44 @@
:: Init Script for cmd.exe
:: Created as part of appie project
:: Find root dir
@if not defined appie_ROOT (
for /f %%i in ("%ConEmuDir%\..\..") do @set appie_ROOT=%%~fi
)
:: Change the prompt style
@prompt $E[1;32;40m$P$S{git}$S$_$E[1;30;40m{lamb}$S$E[0m
:: Pick right version of clink
@if "%PROCESSOR_ARCHITECTURE%"=="x86" (
set architecture=86
) else (
set architecture=64
)
:: Run clink
@"%appie_ROOT%\base\clink\clink_x%architecture%.exe" inject --quiet --profile "%appie_ROOT%\config"
:: Prepare for git-for-windows
:: I do not even know, copypasted from their .bat
@set PLINK_PROTOCOL=ssh
@if not defined TERM set TERM=cygwin
:: Enhance Path
@set git_install_root=%appie_ROOT%\base\git-for-windows
@set PATH=%appie_ROOT%\bin;%git_install_root%\bin;%git_install_root%\usr\bin;%PATH%;%appie_ROOT%\bin\adt\sdk\platform-tools;%git_install_root%\mingw32\bin;%git_install_root%\cmd;%git_install_root%\share\vim\vim74;%appie_ROOT%\bin\adt\eclipse;%appie_ROOT%\base\python;%appie_ROOT%\bin\adt\eclipse\jre\bin;%appie_ROOT%\bin\adt\eclipse\jre\lib;%appie_ROOT%\bin\adt\eclipse\bin;%appie_ROOT%\bin\adt\sdk\tools;%appie_ROOT%\bin\Wireshark;%appie_ROOT%\bin\tools-repo\dex2jar
::@set PYTHONPATH=%appie_ROOT%\base\python\Lib\site-packages
:: Add aliases
@doskey /macrofile="%appie_ROOT%\config\aliases"
:: Set home path
@if not defined HOME set HOME=%USERPROFILE%
@if defined appie_START (
@cd /d "%appie_START%"
) else (
@if "%CD%\" == "%appie_ROOT%" (
@cd /d "%HOME%"
)
)
:: Init Script for cmd.exe
:: Created as part of appie project
:: Find root dir
@if not defined appie_ROOT (
for /f %%i in ("%ConEmuDir%\..\..") do @set appie_ROOT=%%~fi
)
:: Change the prompt style
@prompt $E[1;32;40m$P$S{git}$S$_$E[1;30;40m{lamb}$S$E[0m
:: Pick right version of clink
@if "%PROCESSOR_ARCHITECTURE%"=="x86" (
set architecture=86
) else (
set architecture=64
)
:: Run clink
@"%appie_ROOT%\base\clink\clink_x%architecture%.exe" inject --quiet --profile "%appie_ROOT%\config"
:: Prepare for git-for-windows
:: I do not even know, copypasted from their .bat
@set PLINK_PROTOCOL=ssh
@if not defined TERM set TERM=cygwin
:: Enhance Path
@set git_install_root=%appie_ROOT%\base\git-for-windows
@set PATH=%appie_ROOT%\bin;%git_install_root%\bin;%git_install_root%\usr\bin;%PATH%;%appie_ROOT%\bin\adt\sdk\platform-tools;%git_install_root%\mingw32\bin;%git_install_root%\cmd;%git_install_root%\share\vim\vim74;%appie_ROOT%\bin\adt\eclipse;%appie_ROOT%\base\python;%appie_ROOT%\bin\adt\eclipse\jre\bin;%appie_ROOT%\bin\adt\eclipse\jre\lib;%appie_ROOT%\bin\adt\eclipse\bin;%appie_ROOT%\bin\adt\sdk\tools;%appie_ROOT%\bin\Wireshark;%appie_ROOT%\bin\tools-repo\dex2jar
::@set PYTHONPATH=%appie_ROOT%\base\python\Lib\site-packages
:: Add aliases
@doskey /macrofile="%appie_ROOT%\config\aliases"
:: Set home path
@if not defined HOME set HOME=%USERPROFILE%
@if defined appie_START (
@cd /d "%appie_START%"
) else (
@if "%CD%\" == "%appie_ROOT%" (
@cd /d "%HOME%"
)
)

View File

@ -1,37 +1,37 @@
#!/usr/bin/python
#-*- coding:utf-8 -*-
########################################################################################################
#ipreverse.py - v0.0.1 20160402
########################################################################################################
#this is a simply methods to produce ip list with python
#maybe I would add more functions into in it
########################################################################################################
###
########################################################################################################
#python ipreverse.py >> ips2.txt
print """
this script wouldn products a series of ip depending on your choices
press ' Ctrl + C ' to stop the process
如果想把 结果输出到文件中可以使用如下命令
python ipreverse.py >> ips.txt
"""
#############################################################################
import sys
#origin = sys.stdout
#ips = open('ips.txt','w+')
#sys.stdout = ips
for a in range (0,255):
for b in range (0,255):
for c in range (0,255):
for d in range (0,255):
print str(a) +"." + str(b) + "." + str(c) + "." + str(d)
#sys.stdout = origin
#ips.close()
if __name__ == "__main__":
main()
#!/usr/bin/python
#-*- coding:utf-8 -*-
########################################################################################################
#ipreverse.py - v0.0.1 20160402
########################################################################################################
#this is a simply methods to produce ip list with python
#maybe I would add more functions into in it
########################################################################################################
###
########################################################################################################
#python ipreverse.py >> ips2.txt
print """
this script wouldn products a series of ip depending on your choices
press ' Ctrl + C ' to stop the process
如果想把 结果输出到文件中可以使用如下命令
python ipreverse.py >> ips.txt
"""
#############################################################################
import sys
#origin = sys.stdout
#ips = open('ips.txt','w+')
#sys.stdout = ips
for a in range (0,255):
for b in range (0,255):
for c in range (0,255):
for d in range (0,255):
print str(a) +"." + str(b) + "." + str(c) + "." + str(d)
#sys.stdout = origin
#ips.close()
if __name__ == "__main__":
main()

View File

@ -1,44 +1,44 @@
echo off
color a
cls
set ip=www.baidu.com
set qt=0
set ok=0
set of=0
set zj=0
set aa=0
echo off
color a
:a
cls
title 连接成功:%ok%次 连接失败:%of%次 网卡错误:%zj%次 未知错误:%qt%
echo/
echo/ 成功、失败、错误、未知,单项累计200次以上会自动关闭总计500次以上会自动关闭
echo/
echo/
echo/ 连接成功:%ok%
echo/
echo/ 连接失败:%of%
echo/
echo/ 网卡错误:%zj%
echo/
echo/ 未知错误:%qt%
echo/
echo/
echo/ 总计:%aa%
echo/
echo/
echo/
echo/ -本地客户端-------^> %ip% ^<-------指向服务端----小铁-----
echo/
if %ok% gtr 200 exit
if %of% gtr 200 exit
if %zj% gtr 200 exit
if %qt% gtr 200 exit
set/a aa+=1
ping %ip% -n 1 >nul
if %errorlevel% equ 1 (set/a of+=1 &goto a)
if %errorlevel% equ 0 (set/a ok+=1 &goto a)
if %errorlevel% lss 0 (set/a zj+=1 &goto a)
set/a qt+=1
goto a
echo off
color a
cls
set ip=www.baidu.com
set qt=0
set ok=0
set of=0
set zj=0
set aa=0
echo off
color a
:a
cls
title 连接成功:%ok%次 连接失败:%of%次 网卡错误:%zj%次 未知错误:%qt%
echo/
echo/ 成功、失败、错误、未知,单项累计200次以上会自动关闭总计500次以上会自动关闭
echo/
echo/
echo/ 连接成功:%ok%
echo/
echo/ 连接失败:%of%
echo/
echo/ 网卡错误:%zj%
echo/
echo/ 未知错误:%qt%
echo/
echo/
echo/ 总计:%aa%
echo/
echo/
echo/
echo/ -本地客户端-------^> %ip% ^<-------指向服务端----小铁-----
echo/
if %ok% gtr 200 exit
if %of% gtr 200 exit
if %zj% gtr 200 exit
if %qt% gtr 200 exit
set/a aa+=1
ping %ip% -n 1 >nul
if %errorlevel% equ 1 (set/a of+=1 &goto a)
if %errorlevel% equ 0 (set/a ok+=1 &goto a)
if %errorlevel% lss 0 (set/a zj+=1 &goto a)
set/a qt+=1
goto a

View File

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB