reflecting rootfs change in CI

This commit is contained in:
chfl4gs
2021-03-24 17:22:08 +08:00
parent 3ae93b0673
commit 760ea10fc6
3 changed files with 15 additions and 8 deletions
+4 -1
View File
@@ -24,7 +24,10 @@ jobs:
pip3 install --upgrade pip
pip3 install wheel setuptools
pip3 install .
./examples/scripts/dylibcollector.sh
cd examples
wget https://github.com/qilingframework/rootfs/archive/refs/heads/master.zip
unzip master.zip && mv rootfs-master rootfs
cd .. && ./examples/scripts/dylibcollector.sh
cd examples/rootfs/x8664_macos/kext
unzip -Pinfected SuperRootkit.kext.zip
+11 -4
View File
@@ -63,8 +63,10 @@ jobs:
powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Add-MpPreference -ExclusionPath $GITHUB_WORKSPACE'"
pip3 install setuptools wheel
pip3 install .
cd $GITHUB_WORKSPACE/
git clone https://github.com/qilingframework/rootfs.git
cd examples
curl -LJk -o master.zip https://github.com/qilingframework/rootfs/archive/refs/heads/master.zip && unzip master.zip
mv rootfs-master rootfs
cd $GITHUB_WORKSPACE
cmd.exe //C 'examples\scripts\dllscollector.bat'
cd $GITHUB_WORKSPACE/examples/rootfs/x86_windows/bin
unzip -Pinfected wannacry.bin.zip
@@ -85,16 +87,21 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
pip3 install .
cd examples
git clone https://github.com/qilingframework/rootfs.git
wget https://github.com/qilingframework/rootfs/archive/refs/heads/master.zip
unzip master.zip && mv rootfs-master rootfs
cd rootfs/x86_linux/kernel && unzip -P infected m0hamed_rootkit.ko.zip
cd ../../../../tests && ./test_elf.sh
elif [ ${{ matrix.os }} == 'ubuntu-20.04' ]; then
cd examples
wget https://github.com/qilingframework/rootfs/archive/refs/heads/master.zip
unzip master.zip && mv rootfs-master rootfs
docker run -it --rm -v ${GITHUB_WORKSPACE}:/qiling qilingframework/qiling:dev bash -c "pip3 install . && cd examples/rootfs/x86_linux/kernel && unzip -P infected m0hamed_rootkit.ko.zip && cd ../../../../tests && ./test_elf.sh"
else
pip3 install setuptools wheel
pip3 install .
cd examples
git clone https://github.com/qilingframework/rootfs.git
wget https://github.com/qilingframework/rootfs/archive/refs/heads/master.zip
unzip master.zip && mv rootfs-master rootfs
cd rootfs/x86_linux/kernel && unzip -P infected m0hamed_rootkit.ko.zip
cd ../../../../tests && ./test_elf.sh
fi
-3
View File
@@ -9,9 +9,6 @@ if [ -d /usr/lib/closure ]; then
cp -r /usr/lib/closure examples/rootfs/x8664_macos/usr/lib/;
fi
cd examples
git clone https://github.com/qilingframework/rootfs.git
#if [ ! -d examples/rootfs/x8664_macos/System/Library/Kernels ]; then
# mkdir -p examples/rootfs/x8664_macos/System/Library/Kernels;
#fi