Code Monkey home page Code Monkey logo

oscp-pentest-tips's Introduction

OSCP备考的干货知识~

0x1 边界突破

Web服务

系统服务

暴力破解

反弹shell

0x2 提权

2.1 Linux 提权

2.1.1 Linux SUID 提权

suid 辅助信息收集脚本: linux-pe-suid.sh

原理:

#以下命令将尝试查找具有root权限的SUID的文件,不同系统适用于不同的命令,请逐个尝试
find / -perm -u=s -type f 2>/dev/null
find / -user root -perm -4000-print2>/dev/null
find / -user root -perm -4000-exec ls -ldb {} \;

已知的可用来提权的linux可行性的文件列表如下:

表头 表头 表头
ash chroot docker
base32 csh emacs
base64 curl gdb
bash cut env
busybox dash eqn
cp date expand
cat dd expect
chmod dialog file
chown diff find
docker dmsetup flock
fmt jq nano
fold jrunscript
gimp ksh nice
grep ksshell nl
gtester ld.so node
hd less nohup
head logsave od
hexdump look openssl
highlight lwp-download perl
iconv lwp-request pg
ionice make php
ip more pico
jjs mv python
readelf setarch strings
restic shuf sysctl
rlwrap soelim systemctl
rpm sort tac
rpmquery start tail
rsync stop taskset
run-parts daemon tclsh
rvim stdbuf tcpdump(未验证)
sed strace tee
tftp uniq watch
time unshare wget
timeout uudecode xargs
ul uuencode xxd
unexpand vim/vi xz
zsh zsoelim 其他脚本文件

2.2 Windows 提权

Windows系统与版本号对比:

提权方法:

Windows 自动化提权工具:

  1. Accesschk.exe
  2. BeRoot
  3. winPEAS
  4. windows-exploit-suggester > 教程

oscp-pentest-tips's People

Contributors

jewel591 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.