mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2024-11-29 22:41:27 +00:00
PoC: Special character escape attempt
This commit is contained in:
parent
1769da3477
commit
4150b09c83
13
.drone.yml
13
.drone.yml
|
@ -7,12 +7,9 @@ steps:
|
|||
environment:
|
||||
PASSWORD:
|
||||
from_secret: HETZNER_TOKEN
|
||||
CLOUDFLARE_TOKEN:
|
||||
from_secret: CLOUDFLARE_TOKEN
|
||||
DOMAIN:
|
||||
from_secret: DOMAIN
|
||||
ZONE_ID:
|
||||
from_secret: ZONE_ID
|
||||
|
||||
commands:
|
||||
- >
|
||||
curl -X POST
|
||||
|
@ -20,12 +17,6 @@ steps:
|
|||
-H "Content-Type: application/json"
|
||||
-d '{"name":"ci-sibling","server_type":"cx11","start_after_create":true,"image":"ubuntu-20.04", "volumes":[], "networks":[], "user_data":"#cloud-config\\nruncmd:\\n- curl https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect/raw/branch/rolling-testing/nixos-infect | PROVIDER=hetzner NIX_CHANNEL=nixos-21.05 DOMAIN=ruleit.stream LUSER=cicdcicd PASSWORD=cicdcicdpass CF_TOKEN=228337 DB_PASSWORD=228337 API_TOKEN=228337 HOSTNAME=ruleit.stream bash 2>&1 | tee /tmp/infect.log","labels":{},"automount":false, "location":"fsn1"}'
|
||||
'https://api.hetzner.cloud/v1/servers'
|
||||
- >
|
||||
curl -s
|
||||
-H "Authorization: Bearer $PASSWORD"
|
||||
'https://api.hetzner.cloud/v1/servers' > .machine.json
|
||||
- >
|
||||
export machineip=$( for i in {0..24}; do jq 'if .servers['$i'].name == "ci-sibling" then .servers['$i'].public_net.ipv4.ip else null end' .machine.json; done | grep -v null | sed 's/"//' | sed 's/"//' )
|
||||
|
||||
- name: dns
|
||||
environment:
|
||||
|
@ -56,7 +47,7 @@ steps:
|
|||
curl -s -X POST "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records"
|
||||
-H "Authorization: Bearer $CLOUDFLARE_TOKEN"
|
||||
-H "Content-Type: application/json"
|
||||
--data '{"type":"A","name":"$DOMAIN","content":"$machineip","ttl":3600,"priority":10,"proxied":false}'
|
||||
--data '{"type":"A","name":"'$DOMAIN'","content":"$machineip","ttl":3600,"priority":10,"proxied":false}'
|
||||
- >
|
||||
curl -s -X POST "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records"
|
||||
-H "Authorization: Bearer $CLOUDFLARE_TOKEN"
|
||||
|
|
Loading…
Reference in a new issue