Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add macho load command 'LC_LOAD_WEAK_DYLIB' support #1133

Merged
merged 11 commits into from May 2, 2022
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/giteesync.yml
Expand Up @@ -9,7 +9,9 @@
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: acefei/sync-repo-action@master
- uses: xwings/sync-repo-action@master
with:
run: git config --global --add safe.directory *
ssh_private_key: ${{ secrets.GITEE_KEY }}
target_repo: ssh://git@gitee.com/qilingframework/qiling.git

87 changes: 0 additions & 87 deletions CREDITS.TXT

This file was deleted.

87 changes: 87 additions & 0 deletions CREDITS.md
@@ -0,0 +1,87 @@
### This file credits all the contributors of the Qiling Framework project.


#### Founder

- LAU kaijern (xwings) <kj@qiling.io>


#### Advisor

- NGUYEN Anh Quynh <aquynh@gmail.com>


#### Core Developers Crew

- Earl MARCUS (klks84) klks84@gmail.com
- WU chenxu (kabeor) <kabeor@qiling.io>
- KONG ziqiao (lazymio) <mio@lazym.io>
- YU zheng (dataisland) <dataisland@outlook.com>
- Eli Cohen Nehemia (elicn) <elichn@gmail.com>


#### CI, Website,Documentations, Logo & Swags

- FOO Kevin (chfl4gs) <chfl4gs@qiling.io>
- SU muchen (Mirai Suu) <suu@qiling.io>


#### Key Contributors (in no particular order)

- 0ssigeno
- liba2k
- assafcarlsbad
- ucgJhe
- jhumble
- Mark Jansen (learn-more)
- cq674350529
- bkerler (viperbjk)


#### Contributors (in no particular order)

- WanderingGlitch
- Nguyen Hong Quang (quangnh89)
- re-fox
- t14g0p
- Hcamael
- hugsy
- danielhenrymantilla
- iamyeh
- alfink
- bambu
- madprogrammer
- danielmoos


#### Legacy Core Developers

- DING tianze (D1iv3) <dddliv3@gmail.com>
- SUN bowen (w1tcher) <w1tcher.bupt@gmail.com>
- CHEN huitao (null) <null@qiling.io>
- YU tong (sp1ke) <spikeinhouse@gmail.com>


#### Demigod team (https://groundx.io/demigod)

- NGUYEN Anh Quynh
- NGUYEN Hong Quang
- DO Minh Tuan


#### Alpha testers (in no particular order, named by github id)

- klks
- ekso
- bannsec
- ChrisTheCoolHut
- domenukk
- droberson
- hugsy
- Masrepus
- phdphuc
- sashs
- knownsec
- hwiosec
- iamyeh

2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -219,7 +219,7 @@ Contact us at email info@qiling.io, or via Twitter [@qiling_io](https://twitter.

#### Core developers, Key Contributors and etc

Please refer to [CREDITS.TXT](https://github.com/qilingframework/qiling/blob/master/CREDITS.TXT)
Please refer to [CREDITS.md](https://github.com/qilingframework/qiling/blob/dev/CREDITS.md)

---

Expand Down
1 change: 1 addition & 0 deletions qiling/loader/macho_parser/const.py
Expand Up @@ -45,6 +45,7 @@
LC_LOAD_DYLINKER = 0x0000000E
LC_MAIN = 0x80000028
LC_LOAD_DYLIB = 0x0000000C
LC_LOAD_WEAK_DYLIB = 0x80000018
LC_ENCRYPTION_INFO_64 = 0x0000002C
LC_BUILD_VERSION = 0x00000032
LC_DYLD_EXPORTS_TRIE = 0x80000033
Expand Down
6 changes: 6 additions & 0 deletions qiling/loader/macho_parser/loadcommand.py
Expand Up @@ -39,6 +39,7 @@ def get_complete(self):
LC_LOAD_DYLINKER : LoadDylinker,
LC_MAIN : LoadMain,
LC_LOAD_DYLIB : LoadDyLib,
LC_LOAD_WEAK_DYLIB : LoadWeakDyLib,
LC_ENCRYPTION_INFO_64 : LoadEncryptionInfo64,
LC_DYLD_EXPORTS_TRIE : LoadDyldExportTrie,
LC_DYLD_CHAINED_FIXUPS : LoadDyldChainedFixups,
Expand Down Expand Up @@ -255,6 +256,11 @@ def get_complete(self):
pass


class LoadWeakDyLib(LoadDyLib):
def __init__(self, data):
super().__init__(data)


class LoadUnixThread(LoadCommand):

def __init__(self, data):
Expand Down