Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ptr-yudai/ptrlib
Browse files Browse the repository at this point in the history
  • Loading branch information
ptr-yudai committed May 11, 2024
2 parents 6e5bcd5 + 369e63e commit 5556624
Show file tree
Hide file tree
Showing 19 changed files with 2,080 additions and 1,015 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/test-on-pr-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@

name: Python Test (Ubuntu)

on: [push, pull_request]
on:
push:
paths:
- 'setup.py'
- 'requirements.txt'
- 'ptrlib/**'
- 'tests/**'
pull_request:

jobs:
build:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/test-on-pr-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@

name: Python Test (Windows)

on: [push, pull_request]
on:
push:
paths:
- 'setup.py'
- 'requirements.txt'
- 'ptrlib/**'
- 'tests/**'
pull_request:

jobs:
build:
Expand Down
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
ptrlib
====

![Python application](https://github.com/ptr-yudai/ptrlib/workflows/Python%20application/badge.svg)
![Python Test (Windows)](https://github.com/ptr-yudai/ptrlib/workflows/Python%20Test%20%28Windows%29/badge.svg)
![Python Test (Ubuntu)](https://github.com/ptr-yudai/ptrlib/workflows/Python%20Test%20%28Ubuntu%29/badge.svg)

Python library which bundles security-related utilities.

Expand Down Expand Up @@ -38,9 +39,11 @@ In this section we try using it for a pwnable task.

You can run executable or create socket like this:
```python
sock = Process("./pwn01")
sock = Process(["./pwn01", "--debug"])
sock = Process("./pwn01", cwd="/home/ctf")
sock = Process(["./pwn01", "--debug"], env={"FLAG": "flag{dummy}"})
sock = Process("make menuconfig", shell=True)
sock = Socket("localhost", 1234)
sock = Socket("example.com", 443, ssl=True, sni="neko")
sock = SSH("example.com", 22, username="ubuntu", password="p4s$w0rd")
sock = SSH("example.com", 22, username="ubuntu", identity="./id_rsa")
```
Expand Down Expand Up @@ -131,6 +134,10 @@ Run `pip install --upgrade ptrlib` or `python setup.py install`.
## Contributor
Feel free to make a pull request / issue :)

- [jptomoya](https://github.com/jptomoya)
- Added CI for Windows
- Added SSL support
- Refactored test cases
- [theoremoon](https://github.com/theoremoon)
- Added/fixed several cryptography functions
- Added buffering of Socket/Process
Expand Down
2 changes: 1 addition & 1 deletion ptrlib/binary/encoding/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .ansi import *
from .bitconv import *
from .byteconv import *
from .char import *
from .dump import *
from .locale import *
from .table import *
Loading

0 comments on commit 5556624

Please sign in to comment.