cat > /etc/systemd/system/<name>.service << EOF
[Unit]
Description=<Name>
After=network-online.target
[Service]
Environment="PORT=9879"
Environment="HOST=::"
ExecStart=/usr/bin/<pwsh> /opt/<name> -start
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "http.response.status_code: [499 TO 600] AND container.name : (" + $((Get-Clipboard -Raw) -replace "\n", "* OR ") + "*)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl --silent --fail --show-error www.postman-echo.com/delete |
freerdp /u:<Name> /p:<Password> /d:<ad.domain.com> /v:<ip_addr> /w:1920 /h:1080 /fonts /smart-sizingfunction ,freerdp(){
freerdp /w:1920 /h:1080 /fonts /smart-sizing "${@}"
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Simple script to check drivers in C:\windows\system32\drivers against the loldrivers list | |
| # Author: Oddvar Moe - @oddvar.moe | |
| $drivers = get-childitem -Path c:\windows\system32\drivers | |
| $web_client = new-object system.net.webclient | |
| $loldrivers = $web_client.DownloadString(" https://www.loldrivers.io/api/drivers.json") | ConvertFrom-Json | |
| Write-output("Checking {0} drivers in C:\windows\system32\drivers against loldrivers.io json file" -f $drivers.Count) | |
| foreach ($lol in $loldrivers.KnownVulnerableSamples) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo "$(readlink -f $(dirname "$0"))" | |
| echo "$(cd $(dirname "$0") && pwd)" |
https://lucene.apache.org/core/2_9_4/queryparsersyntax.html
https://www.elastic.co/guide/en/kibana/current/kuery-query.html
| Syntax | Description | Example |
|---|---|---|
| KQL | Keyword-based syntax using operators such as "AND", "OR", and "NOT". | http.response.status_code:200 AND url.original:/login/ |
| Lucene | Field-based syntax using special characters and syntax rules such as ":", "+" and "-". | http.response.status_code:200 AND url.original:/login/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # failing to read, but not write, rationale device was in disk array controller before | |
| dmesg | |
| # blk_update_request: protection error | |
| # SCSI disk format https://linux.die.net/man/8/sg_format | |
| sg_format --format /dev/sdX # it take time! |
bash -c "LANGUAGE=sk_SK LANG=sk_SK.UTF-8 /opt/Signal/signal-desktop --no-sandbox %U"from gnu screen on one pane sudo ncat -kl -p 2376 -c 'ncat -U /run/docker.sock'
curl --silent http://0.0.0.0:2376/images/json
#images
curl --silent http://0.0.0.0:2376/images/json | jq -r '.[] | select(.RepoTags[] | test("alpine:*")) | .RepoTags[]'
#inspect