Skip to content

Commit 795fe08

Browse files
authored
Merge pull request #822 from qilingframework/dev
getting ready for 1.2.5
2 parents ab97c27 + 038e0a8 commit 795fe08

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+3584
-1750
lines changed

.circleci/config.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,31 @@ jobs:
55
macos:
66
xcode: 10.1
77
environment:
8-
HOMEBREW_NO_AUTO_UPDATE: 1
98
MACOSX_DEPLOYMENT_TARGET: 10.13.6
109
steps:
1110
- checkout
1211
- run:
13-
name: "Install wget"
12+
name: "Install cmake"
1413
command: |
15-
brew install wget cmake
14+
curl -OL https://distfiles.macports.org/MacPorts/MacPorts-2.6.4-10.13-HighSierra.pkg
15+
sudo installer -pkg MacPorts-2.6.4-10.13-HighSierra.pkg -target /
16+
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
17+
sudo port -q -N install cmake pkgconfig
1618
1719
- restore_cache:
1820
keys:
19-
- python-{{ .Environment.CIRCLE_JOB }}-3.7.0-macos-10.13.6
21+
- python-{{ .Environment.CIRCLE_JOB }}-3.7-port-macos-10.13.6
2022

21-
- run:
23+
- run:
2224
name: "Install qiling framework"
2325
command: |
26+
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
2427
pip3 install --upgrade pip
2528
pip3 install wheel setuptools
2629
pip3 install .
2730
cd examples
2831
rm -rf rootfs
29-
wget https://github.com/qilingframework/rootfs/archive/refs/heads/master.zip
32+
curl -OL https://github.com/qilingframework/rootfs/archive/refs/heads/master.zip
3033
unzip master.zip && mv rootfs-master rootfs
3134
cd .. && ./examples/scripts/dylibcollector.sh
3235
cd examples/rootfs/x8664_macos/kext
@@ -35,7 +38,7 @@ jobs:
3538
- save_cache:
3639
paths:
3740
- ~/Library/Caches/pip
38-
key: python-{{ .Environment.CIRCLE_JOB }}-3.7.0-macos-10.13.6
41+
key: python-{{ .Environment.CIRCLE_JOB }}-3.7-port-macos-10.13.6
3942

4043
- run:
4144
name: "Run macos test"

.github/workflows/build-ci.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,19 @@ jobs:
1111
matrix:
1212
#os: [windows-2019, macos-10.15, ubuntu-18.04, ubuntu-20.04]
1313
os: [windows-2019, ubuntu-18.04, ubuntu-20.04]
14-
python-version: [3.6.8, 3.7.6, 3.8.5]
14+
python-version: [3.7.6, 3.9.5]
1515
exclude:
1616
- os: ubuntu-20.04
1717
python-version: 3.7.6
1818
- os: ubuntu-20.04
19-
python-version: 3.8.5
20-
- os: windows-2019
21-
python-version: 3.6.8
19+
python-version: 3.9.5
2220
- os: windows-2019
2321
python-version: 3.7.6
2422
# - os: macos-10.15
25-
# python-version: 3.6.8
26-
# - os: macos-10.15
2723
# python-version: 3.7.6
2824
include:
2925
- os: ubuntu-20.04
30-
python-version: 3.6.8
26+
python-version: 3.9.5
3127
container: Docker
3228

3329
steps:

.github/workflows/giteesync.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
name: sync to gitee
2-
on:
3-
push:
1+
name: sync to gitee
2+
on:
3+
push:
44

5-
jobs:
6-
deploy:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: actions/checkout@v2
10-
with:
11-
fetch-depth: 0
12-
- uses: acefei/sync-repo-action@master
13-
with:
14-
ssh_private_key: ${{ secrets.GITEE_KEY }}
15-
target_repo: ssh://[email protected]/qilingframework/qiling.git
5+
jobs:
6+
deploy:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
with:
11+
fetch-depth: 0
12+
- uses: acefei/sync-repo-action@master
13+
with:
14+
ssh_private_key: ${{ secrets.GITEE_KEY }}
15+
target_repo: ssh://[email protected]/qilingframework/qiling.git

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*.cache2
88
.*.swp
99
*.raw
10+
.venv
1011

1112
# cache and misc
1213
qiling.egg-info/
@@ -34,3 +35,6 @@ test.file
3435
*.o
3536
core
3637
*.perf
38+
39+
# future
40+
engine/

ChangeLog

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
This file details the changelog of Qiling Framework.
22

33
------------------------------------
4-
[Version 1.2.4]: April [SOMETHING], 2021
5-
4+
[Version 1.2.4]: July 0th, 2021
65
-
76

7+
------------------------------------
8+
[Version 1.2.4]: June 15th, 2021
9+
10+
- Added custom engine extension
11+
- Added more posix syscall
12+
- Refactor: Posix syscall
13+
- Refactor: Memory management
14+
- Refactor: Heap management
15+
- Cleanup and getting ready for engine module
16+
17+
818
------------------------------------
919
[Version 1.2.3]: March 30th, 2021
1020

@@ -13,6 +23,7 @@ This file details the changelog of Qiling Framework.
1323
- Fixed return value for uid/gid related syscall
1424
- Resolved multilevel symbolic links
1525
- Demigod set.api implementation
26+
- Added support for arguments inside IDA plugin
1627
- Major refactor, see commit 4aa8e59e04d5a8a5520e4e1e2595ecc78a80beba
1728
- Clean and remove rootfs
1829
- ql.filter now accepts a regular expression
@@ -43,8 +54,8 @@ This file details the changelog of Qiling Framework.
4354
- Added support for custom envs variables inside IDA plugin
4455
- Demigod: Fixed lkm mapping and added support for MIPS32EL
4556
- Demigod: Added support for Linux x86 32bit
46-
- Added support for binaries that return from their entrypoint (PE / ELF).
47-
- Configure Qiling with 'stop_on_stackpointer' or 'stop_on_exit_trap'.
57+
- Added support for binaries that return from their entrypoint (PE / ELF)
58+
- Configure Qiling with 'stop_on_stackpointer' or 'stop_on_exit_trap'
4859
- Add basic Windows driver tests / example
4960
- UEFI refactor
5061

@@ -100,7 +111,7 @@ This file details the changelog of Qiling Framework.
100111
- Added experimental 8086 and DOS support.
101112
- Fixed path transformation on Windows when running Linux.
102113
- IDA Plugin able to instrument code now
103-
- Refactor ql.fs_mapper (now ql.os.fs_mapper).
114+
- Refactor ql.fs_mapper (now ql.os.fs_mapper)
104115

105116

106117
------------------------------------

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.6-slim AS builder
1+
FROM python:3.8-slim AS builder
22

33
LABEL maintainer="Kevin Foo <[email protected]>"
44

@@ -13,14 +13,14 @@ COPY . /qiling
1313
RUN cd /qiling \
1414
&& pip wheel . -w wheels
1515

16-
FROM python:3.6-slim AS base
16+
FROM python:3.8-slim AS base
1717

1818
COPY --from=builder /qiling /qiling
1919

2020
WORKDIR /qiling
2121

2222
RUN apt-get update \
23-
&& apt-get install -y --no-install-recommends unzip \
23+
&& apt-get install -y --no-install-recommends unzip apt-utils \
2424
&& rm -rf /var/lib/apt/lists/* \
2525
&& pip3 install wheels/*.whl \
2626
&& rm -rf wheels

examples/fuzzing/linux_x8664/fuzz.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,23 @@
55
// Program that will crash easily.
66
#define SIZE (10)
77

8-
int fun(int i) {
8+
int fun(int i)
9+
{
910
char *buf = malloc(SIZE);
1011
char buf2[SIZE];
11-
while (*buf = getc(stdin) == 'A') {
12+
13+
while (*buf = getc(stdin) == 'A')
14+
{
1215
buf[i++] = *buf;
1316
}
17+
1418
strncpy(buf2, buf, i);
1519
printf(buf2);
20+
1621
return 0;
1722
}
1823

19-
int main(int argc, char **argv) {
24+
int main(int argc, char **argv)
25+
{
2026
return fun(argc);
2127
}

0 commit comments

Comments
 (0)