顯示具有 網路 標籤的文章。 顯示所有文章
顯示具有 網路 標籤的文章。 顯示所有文章

2019年5月24日 星期五

nikto 安裝及使用

#安裝
>pkg install perl5
>pkg install git
>git clone https://github.com/sullo/nikto.git Nikto2

#更新
>cd Nikto2
>git pull

#使用
>cd Nikto2/program

##掃描https
>perl nikto.pl -h https://123.edu.tw/ -ssl
##掃描http
>perl nikto.pl -h http://123.edu.tw/
##掃描特定資料夾
>perl nikto.pl -h http://123.edu.tw/billing/

2018年9月7日 星期五

使用ip取得電腦名稱及mac address


nmap --script smb-os-discovery 192.168.0.1

抓以下兩個區塊的資料

MAC Address: 4C:CC:6A:77:A5:98 (Micro-star Intl)

Host script results:
| smb-os-discovery:
|   OS: Windows 7 Enterprise 7601 Service Pack 1 (Windows 7 Enterprise 6.1)
|   OS CPE: cpe:/o:microsoft:windows_7::sp1
|   Computer name: xx
|   NetBIOS computer name: xx\x00
|   Workgroup: xxgroup\x00
|_  System time: 2018-09-07T10:03:26+08:00

2018年4月18日 星期三

arping

#功能
檢查該IP是否在線上


#安裝
pkg install arping

#同網段使用
arping 10.10.1.1

#不同網段無法使用
#不同網段使用 
arping -i bridge0 10.10.2.1

#控制發送封包次數
arping -i bridge0 -c 1 10.10.2.1

2017年10月30日 星期一

OpenVAS 9 on CentOS 7

#禁止root ssh

>vi /etc/ssh/sshd_config

PermitRootLogin no

>systemctl restart sshd.service

======================================================================
#更新
yum -y update

======================================================================
#防火牆
http://blog.xuite.net/tolarku/blog/363801991-CentOS+7+Firewalld+防火牆說明介紹

======================================================================
#安裝OpenVAS

>vi /etc/selinux/config

SELINUX=disabled

>reboot

>yum install wget bzip2 texlive net-tools alien

>wget -q -O - http://www.atomicorp.com/installers/atomic | sh

>yum install redis openvas

>vim /etc/redis.conf
unixsocket /tmp/redis.sock
unixsocketperm 700

>systemctl enable redis
>systemctl restart redis

>openvas-setup

(下載更新 跑很久)

(設定admin帳號密碼)

#開啟防火牆
>firewall-cmd --permanent --zone=public --add-port=9392/tcp
>firewall-cmd --reload

======================================================================
#無法產生PDF檔的修正方法
>yum -y install texlive-changepage texlive-titlesec
>mkdir -p /usr/share/texlive/texmf-local/tex/latex/comment
>cd /usr/share/texlive/texmf-local/tex/latex/comment
>wget http://mirrors.ctan.org/macros/latex/contrib/comment/comment.sty
>chmod 644 comment.sty
>texhash

2017年10月27日 星期五

windows 安裝 apache

下載連結
https://www.apachelounge.com/download/





  1. 安裝vc_redist_x64.exe
  2. 將httpd-2.4.29-Win64-VC15.zip解壓縮到 c:/Apache24 資料夾
  3. c:/Apache24/bin/httpd -k install

2017年5月15日 星期一

masscan 網路掃描

安裝
pkg install masscan

使用
#掃描整個網段的80port(TCP)
masscan 10.10.1.0/24 -p80 -e em0 --router-ip 10.10.1.254

#掃描單一IP的所有port(TCP)
masscan 10.10.1.1 -p0-65535 -e em0 --router-ip 10.10.1.254

#掃描port(UDP)
masscan 10.10.1.1 -pU:123 -e em0 --router-ip 10.10.1.254

2016年3月29日 星期二

google 的 IP 位址

參考:
https://support.google.com/a/answer/60764?hl=zh-Hant



nslookup -q=TXT _spf.google.com 8.8.8.8

nslookup -q=TXT _netblocks.google.com 8.8.8.8
nslookup -q=TXT _netblocks2.google.com 8.8.8.8
nslookup -q=TXT _netblocks3.google.com 8.8.8.8



即可拿到IP清單