-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
basic darwin support for shellcrafter #2161
Merged
Merged
Conversation
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
patryk4815
commented
Jan 24, 2023
patryk4815
commented
Jan 24, 2023
Arusekk
reviewed
Oct 1, 2023
@patryk4815 What's the status on this? |
Arusekk
reviewed
Jan 3, 2024
Arusekk
reviewed
Jan 3, 2024
Arusekk
reviewed
Jan 3, 2024
Arusekk
reviewed
Jan 3, 2024
Arusekk
reviewed
Jan 3, 2024
Arusekk
reviewed
Jan 3, 2024
Could you also rebase the commits before merging so that the auto-generated stuff goes into a separate commit? |
7fb7263
to
20334db
Compare
20334db
to
15748d0
Compare
c9bc555
to
a814be2
Compare
Arusekk
reviewed
Jan 3, 2024
Arusekk
reviewed
Jan 3, 2024
@Arusekk i think it is ready Simple code works: from pwn import *
context.os = 'darwin'
context.arch = 'amd64'
f = tempfile.mktemp()
write(f, 'This is the flag\n')
shellcode = shellcraft.cat2(f) + shellcraft.exit(1)
intr = asm(shellcode)
print(shellcode)
print(intr)
print(disasm(intr))
print(run_shellcode(intr).recv(0x100))
print(run_assembly(shellcode).recv(0x100)) |
…n_shellcode/run_assembly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pwntools Pull Request
Added basic darwin support for shellcrafter
What is working on linux:
What is working on darwin:
Testing
Pull Requests that introduce new code should try to add doctests for that code. See
TESTING.md
for more information.Target Branch
Depending on what the PR is for, it needs to target a different branch.
You can always change the branch after you create the PR if it's against the wrong branch.
dev
dev
stable
stable
branchbeta
beta
branch, but notstable
dev
Changelog
After creating your Pull Request, please add and push a commit that updates the changelog for the appropriate branch.
You can look at the existing changelog for examples of how to do this.