-
Notifications
You must be signed in to change notification settings - Fork 747
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #749 from qilingframework/dev
Getting ready for 1.2.3
- Loading branch information
Showing
358 changed files
with
10,114 additions
and
5,456 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
version: 2.1 | ||
|
||
jobs: | ||
macos: | ||
macos: | ||
xcode: 10.1 | ||
environment: | ||
HOMEBREW_NO_AUTO_UPDATE: 1 | ||
MACOSX_DEPLOYMENT_TARGET: 10.13.6 | ||
steps: | ||
- checkout | ||
- run: | ||
name: "Install wget" | ||
command: | | ||
brew install wget cmake | ||
- restore_cache: | ||
keys: | ||
- python-{{ .Environment.CIRCLE_JOB }}-3.7.0-macos-10.13.6 | ||
|
||
- run: | ||
name: "Install qiling framework" | ||
command: | | ||
pip3 install --upgrade pip | ||
pip3 install wheel setuptools | ||
pip3 install . | ||
cd examples | ||
rm -rf rootfs | ||
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 | ||
- save_cache: | ||
paths: | ||
- ~/Library/Caches/pip | ||
key: python-{{ .Environment.CIRCLE_JOB }}-3.7.0-macos-10.13.6 | ||
|
||
- run: | ||
name: "Run macos test" | ||
command: | | ||
cd tests | ||
./test_macho.sh | ||
workflows: | ||
version: 2 | ||
run-tests: | ||
jobs: | ||
- macos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,21 +9,22 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-18.04, ubuntu-20.04] | ||
#os: [windows-2019, macos-10.15, ubuntu-18.04, ubuntu-20.04] | ||
os: [windows-2019, ubuntu-18.04, ubuntu-20.04] | ||
python-version: [3.6.8, 3.7.6, 3.8.5] | ||
exclude: | ||
# - os: windows-2019 | ||
# python-version: 3.7.6 | ||
# - os: macos-10.15 | ||
# python-version: 3.7.6 | ||
- os: ubuntu-20.04 | ||
python-version: 3.7.6 | ||
# - os: windows-2019 | ||
# python-version: 3.8.5 | ||
# - os: macos-10.15 | ||
# python-version: 3.8.5 | ||
python-version: 3.7.6 | ||
- os: ubuntu-20.04 | ||
python-version: 3.8.5 | ||
- os: windows-2019 | ||
python-version: 3.6.8 | ||
- os: windows-2019 | ||
python-version: 3.7.6 | ||
# - os: macos-10.15 | ||
# python-version: 3.6.8 | ||
# - os: macos-10.15 | ||
# python-version: 3.7.6 | ||
include: | ||
- os: ubuntu-20.04 | ||
python-version: 3.6.8 | ||
|
@@ -37,41 +38,47 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
# - name: win setup MSVC | ||
# if: contains(matrix.os, 'windows') | ||
# uses: microsoft/setup-msbuild@v1 | ||
|
||
# - name: win run tests | ||
# if: contains(matrix.os, 'windows') | ||
# shell: bash | ||
# run: | | ||
# powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableArchiveScanning \$true'" | ||
# powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableBehaviorMonitoring \$true'" | ||
# powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableRealtimeMonitoring \$true'" | ||
# powershell Add-MpPreference -ExclusionPath $GITHUB_WORKSPACE | ||
# pip3 install setuptools wheel | ||
# pip3 install . | ||
# cmd.exe //C 'examples\scripts\dllscollector.bat' | ||
# cd $GITHUB_WORKSPACE/examples/rootfs/x86_windows/bin | ||
# unzip -Pinfected wannacry.bin.zip | ||
# unzip -Pinfected UselessDisk.bin.zip | ||
# unzip -Pinfected GandCrab502.bin.zip | ||
# unzip -Pinfected al-khaser.bin.zip | ||
# unzip -Pinfected sality.dll.zip | ||
# cd $GITHUB_WORKSPACE/tests | ||
# cmd.exe //C '.\test_pe.bat' | ||
# - name: mac run tests | ||
# if: contains(matrix.os, 'macos') | ||
# continue-on-error: true | ||
# shell: bash | ||
# run: | | ||
# pip3 install setuptools wheel | ||
# pip3 install . | ||
# ./examples/scripts/dylibcollector.sh | ||
# cd $GITHUB_WORKSPACE/examples/rootfs/x8664_macos/kext | ||
# unzip -Pinfected SuperRootkit.kext.zip | ||
# cd $GITHUB_WORKSPACE/tests | ||
# ./test_macho.sh | ||
- name: Win setup MSVC | ||
if: contains(matrix.os, 'windows') | ||
uses: microsoft/setup-msbuild@v1 | ||
|
||
|
||
- name: Win configure Pagefile | ||
if: contains(matrix.os, 'windows') | ||
uses: al-cheb/[email protected] | ||
with: | ||
minimum-size: 16GB | ||
maximum-size: 16GB | ||
disk-root: "C:" | ||
|
||
|
||
- name: win run tests | ||
if: contains(matrix.os, 'windows') | ||
shell: bash | ||
run: | | ||
powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableArchiveScanning \$true'" | ||
powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableBehaviorMonitoring \$true'" | ||
powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableRealtimeMonitoring \$true'" | ||
powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Add-MpPreference -ExclusionPath $GITHUB_WORKSPACE'" | ||
pip3 install setuptools wheel | ||
pip3 install . | ||
cd examples | ||
rm -rf rootfs | ||
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 | ||
unzip -Pinfected UselessDisk.bin.zip | ||
unzip -Pinfected GandCrab502.bin.zip | ||
unzip -Pinfected al-khaser.bin.zip | ||
unzip -Pinfected sality.dll.zip | ||
cd $GITHUB_WORKSPACE/tests | ||
cmd.exe //C '.\test_pe.bat' | ||
- name: linux run tests | ||
if: contains(matrix.os, 'ubuntu') | ||
shell: 'script -q -e -c "bash {0}"' | ||
|
@@ -80,13 +87,38 @@ jobs: | |
pip3 install setuptools wheel flake8 | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
pip3 install . | ||
cd examples/rootfs/x86_linux/kernel && unzip -P infected m0hamed_rootkit.ko.zip | ||
cd examples | ||
rm -rf rootfs | ||
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 | ||
rm -rf rootfs | ||
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/rootfs/x86_linux/kernel && unzip -P infected m0hamed_rootkit.ko.zip | ||
cd examples | ||
rm -rf rootfs | ||
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 | ||
# - name: mac run tests | ||
# if: contains(matrix.os, 'macos') | ||
# shell: bash | ||
# run: | | ||
# pip3 install setuptools wheel | ||
# pip3 install . | ||
# ./examples/scripts/dylibcollector.sh | ||
# cd $GITHUB_WORKSPACE/examples/rootfs/x8664_macos/kext | ||
# unzip -Pinfected SuperRootkit.kext.zip | ||
# cd $GITHUB_WORKSPACE/tests | ||
# ./test_macho.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "examples/rootfs"] | ||
path = examples/rootfs | ||
url = https://github.com/qilingframework/rootfs.git |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
recursive-include qiling/debugger/gdb/xml * | ||
recursive-include qiling/extensions/windows_sdk/defs * | ||
recursive-include qiling/profiles * | ||
include qiling/os/uefi/guids.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.