zoukankan      html  css  js  c++  java
  • OSCP Security Technology

    OSCP Security Technology - Introduction

    Modules
    • Introduction to Kali Linux
    • Information Gathering
    • Scanning
    • Enumeration
    • Netcat
    • Buffer Overflows
    • Exploitation
    • WebApp Exploitation
    • File Transfers
    • Privilege Escalation
    • Post Exploitation
    • Capstone
    Thoughts
    • Have Fun
    • Try Harder
    Common Commands
    • pwd
    • man
    • ls
    • cd
    • mkdir
    • rmdir
    • cp
    • mv
    • locate
    • adduser
    • su
    • sudo
    • echo
    • cat
    • nano
    • chmod
    • ifconfig
    • ping
    Services
    • HTTP - /var/www/html

      - service apache2 start
      - systemctl enable apache2
      - service apache2 stop
      

      image-20210605130033972

    • SSH

      service ssh start
      systemctl enable ssh
      
      

      image-20210605132440681

    • Postgresql

      service postgresql start
      systemctl enable postgresql
      
    Bash Scripting in Kali Linux
    ping 192.168.2.23
    ping -c 1 192.168.2.23
    ping -c 1 192.168.2.23 | grep "64 bytes"
    ping -c 1 192.168.2.23 | grep "64 bytes" | cut -d " " -f 4
    ping -c 1 192.168.2.23 > ping.txt
    cat ping.txt
    cat ping.txt | grep "64 bytes" | cut -d " " -f 4 | sed 's/.$//'
    ping -c 1 192.168.2.23 | grep "64 bytes" | cut -d " " -f 4 | sed 's/.$//'
    

    image-20210605135822733

    for ip in $(seq 1 254); do ping -c 1 192.168.2.$ | grep "64 bytes" | cut -d " " -f 4 | sed 's/.$//' & done
    

    image-20210605140610040

    nano pingsweep.sh
    
    #!/bin/bash
    
    if [ "$1" == "" ]
    then
    echo "Usage: ./pingsweep.sh [network]"
    echo "Example: ./pingsweep.sh 192.168.2"
    else
    for ip in `seq 1 254`; do
    ping -c 1 $1.$ip | grep "64 bytes" | cut -d " " -f 4 | sed 's/.$//' & done
    fi
    

    image-20210605144102264

    相信未来 - 该面对的绝不逃避,该执著的永不怨悔,该舍弃的不再留念,该珍惜的好好把握。
  • 相关阅读:
    IntelliJ IDEA 使用总结[zz]
    “vmware tools 只能虚拟机中安装”的解决方法
    Git 少用 Pull 多用 Fetch 和 Merge
    hypervisor与VMware共存方法
    rsa && sha1 js code
    PHP导出数据库方法
    Git中的AutoCRLF与SafeCRLF换行符问题
    DOTA2参数收集
    HelloGitHub.com 网站开源了
    第 10 篇 评论接口
  • 原文地址:https://www.cnblogs.com/keepmoving1113/p/14852731.html
Copyright © 2011-2022 走看看