Skip to content

Instantly share code, notes, and snippets.

View BlueSKySec's full-sized avatar

BlueSkySec BlueSKySec

View GitHub Profile
@BlueSKySec
BlueSKySec / skip-maven-tests.md
Created December 20, 2023 08:57
Skip Maven Tests

Skip Maven Tests

pom.xml:

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-antrun-plugin</artifactId>
				<executions>
 
@BlueSKySec
BlueSKySec / deleteservice.md
Last active November 23, 2023 14:40
Delete Service from MS Windows (10+)

Delete Service from MS Windows (10+)

  1. Start regedit as administrator (elevated rights)

  2. Navigate to HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services

  3. Look up your service

  4. Delete the service

@BlueSKySec
BlueSKySec / post-call-poewershell.md
Last active November 21, 2023 11:31
[POST]-call in Powershell

[POST]-call in Powershell

Create the POST data:

>> $body =@{
>> "language" = "en"
>> "sourceType" = 4
>> "groupScreens" = "true"
&gt;&gt; "caseId" = "TEST_001"
@BlueSKySec
BlueSKySec / poewergetpost.md
Created November 21, 2023 11:25
How to GET & POST using PowerShell

[GET]-call in Powershell

Invoke-RestMethod -Method 'Get' -Uri http://www.spiegel.de
@BlueSKySec
BlueSKySec / GetChildItem.md
Last active October 10, 2023 11:50
"find" - replacement in Windows Powershell "GetChildItem"

"find" - replacement in Windows Powershell "GetChildItem"

Situation: Find all installations of *.git and print path and version

Solution:

Example:

Get-ChildItem "C:\" -Recurse -Filter *.git 1&gt;C:\temp\findings.txt 2&gt;C:\temp\errors.log | % { echo "***************" ; &amp; $_.FullName -version ; echo $_.FullName ; echo " "}
@BlueSKySec
BlueSKySec / ps-grep.md
Last active July 4, 2023 11:17
Powershell: Recursively Find String In Files

Powershell: Recursively Find String In Files

Syntax:

Get-ChildItem [pattern] -Recurse | Select-String -Pattern "[regex]" | Select-Object

Example 1:

@BlueSKySec
BlueSKySec / encryption-hints.md
Last active May 11, 2023 17:46
Hash Detection

Hash Detection

Hints to detect different algorithms

  • Blowfish
$2$ -> Blowfish
$2a$ -> Blowfish
$2y$ -&gt; Blowfish
@BlueSKySec
BlueSKySec / MountNetworkDromWSL.md
Last active May 11, 2023 17:47
Mount a network drive from Windows Subsystem for Linux

Mount a network drive from Windows Subsystem for Linux

Situation: You want to mount a network drive from Windows Subsystem for Linux

Solution:

  • create mount-directory if it doesn't already exist:
sudo mkdir /mnt/share
@BlueSKySec
BlueSKySec / find_multiple.md
Last active November 21, 2023 11:33
find: multple names as parameter

Find files with "find" command using different filename-patterns

Situation: You want to search for files with different name-patterns

Solution:

Put the different patterns into escaped brackets ("\(...\) and link the with "-o".

Example:

Manually update XCode in case update via Appstore fails

Situation: Update via Appstore got stuck, although more than 40 GB hard disk space available.

Solution:

  1. Go to /Applications and move XCode to trash

  2. Downloaded XCode from here: https://developer.apple.com/download/all/?q=xcode