diff --git a/.circleci/config.yml b/.circleci/config.yml index eb6f07f9..d7e73e22 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index d9e57c36..b2ebeead 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -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 diff --git a/examples/scripts/dylibcollector.sh b/examples/scripts/dylibcollector.sh index 590b7a7d..0f95fe11 100755 --- a/examples/scripts/dylibcollector.sh +++ b/examples/scripts/dylibcollector.sh @@ -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