Skip to content

Commit

Permalink
[Nyx] Move swapoff from user script to root script
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwartzentruber committed Jun 18, 2024
1 parent a10a806 commit d8c362e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions services/nyx/sharedir/fuzz_no_pt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ chown user ld_preload_fuzz.so
chown user fuzz.sh
chown user stage2.sh

echo "[!] disabling swap" | ./hcat
swapoff -a

echo "[!] switching user (root -> user)" | ./hcat
su user -c "sh stage2.sh"

Expand Down
3 changes: 0 additions & 3 deletions services/nyx/sharedir/stage2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ echo "[!] agent is running on the following OS:" | ./hcat
lsb_release -a | ./hcat
uname -a | ./hcat

echo "[!] disabling swap" | ./hcat
sudo swapoff -a

echo "[!] requesting firefox from hypervisor" | ./hcat
./hget ff_files.sh ff_files.sh
sh ff_files.sh
Expand Down

0 comments on commit d8c362e

Please sign in to comment.