Skip to content

Instantly share code, notes, and snippets.

View adrianbiro's full-sized avatar

Adrián Bíro adrianbiro

View GitHub Profile
@adrianbiro
adrianbiro / jenkinsParameters2Lucene.ps1
Last active June 7, 2023 05:59
Copy modules from Jenkins parameters, then in PowerShell run this, search with string in Kibana Lucene mode
"http.response.status_code: [499 TO 600] AND container.name : (" + $((Get-Clipboard -Raw) -replace "\n", "* OR ") + "*)"
curl --silent --fail --show-error www.postman-echo.com/delete
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

man freerdp

freerdp /u:<Name> /p:<Password> /d:<ad.domain.com> /v:<ip_addr> /w:1920 /h:1080 /fonts /smart-sizing
function ,freerdp(){
  freerdp /w:1920 /h:1080 /fonts /smart-sizing "${@}"
}
@adrianbiro
adrianbiro / check_vulnerabledrivers.ps1
Created May 22, 2023 07:51 — forked from api0cradle/check_vulnerabledrivers.ps1
A quick script to check for vulnerable drivers. Compares drivers on system with list from loldrivers.io
# 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)
{
echo "$(readlink -f $(dirname "$0"))"
echo "$(cd $(dirname "$0") && pwd)"
# 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

docker API create container

#images
curl --silent http://0.0.0.0:2376/images/json | jq -r '.[] | select(.RepoTags[] | test("alpine:*")) | .RepoTags[]'
#inspect