Skip to content

Commit f8bdf29

Browse files
committed
updated the documentation
1 parent ddb5694 commit f8bdf29

8 files changed

Lines changed: 53 additions & 43 deletions

File tree

app/ctfsolver.egg-info/PKG-INFO

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 2.1
22
Name: ctfsolver
3-
Version: 0.0.7
3+
Version: 0.0.8
44
Summary: An all in one library for solving CTF challenges
55
Home-page: https://github.com/nikolasfil/CTFSolverScript
66
Author: Nikolas Filippatos
@@ -11,10 +11,11 @@ Classifier: Operating System :: OS Independent
1111
Requires-Python: >=3.11
1212
Description-Content-Type: text/markdown
1313
License-File: LICENSE
14-
Requires-Dist: setuptools>=67.7.0
1514
Requires-Dist: build>=0.7.0
16-
Requires-Dist: wheel>=0.37.0
1715
Requires-Dist: pwntools>=4.0.0
16+
Requires-Dist: scapy>=2.0.0
17+
Requires-Dist: setuptools>=67.7.0
18+
Requires-Dist: wheel>=0.37.0
1819
Provides-Extra: dev
1920
Requires-Dist: pytest>=6.2.4; extra == "dev"
2021
Requires-Dist: twine>=3.4.2; extra == "dev"

app/ctfsolver.egg-info/requires.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
setuptools>=67.7.0
21
build>=0.7.0
3-
wheel>=0.37.0
42
pwntools>=4.0.0
3+
scapy>=2.0.0
4+
setuptools>=67.7.0
5+
wheel>=0.37.0
56

67
[dev]
78
pytest>=6.2.4

build/lib/ctfsolver/src/manager_connections.py

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,34 @@ def connect(self, *args, **kwargs) -> None:
2626
Connects to the challenge based on the connection type.
2727
If the connection type is remote, it connects to the url and port provided.
2828
If the connection type is local, it starts a process with the file provided.
29+
30+
31+
local:
32+
kwargs :
33+
argv: Any | None = None,
34+
shell: bool = False,
35+
executable: Any | None = None,
36+
cwd: Any | None = None,
37+
env: Any | None = None,
38+
ignore_environ: Any | None = None,
39+
stdin: int = PIPE,
40+
stdout: PTY | int = PTY if not IS_WINDOWS else PIPE,
41+
stderr: int = STDOUT,
42+
close_fds: bool = True,
43+
preexec_fn: Any = lambda : None,
44+
raw: bool = True,
45+
aslr: Any | None = None,
46+
setuid: Any | None = None,
47+
where: str = 'local',
48+
display: Any | None = None,
49+
alarm: Any | None = None,
50+
creationflags: int = 0
51+
2952
"""
3053
if self.conn_type == "remote" and self.url and self.port:
31-
self.conn = pwn.remote(self.url, self.port)
54+
self.conn = self.pwn.remote(self.url, self.port)
3255
elif self.conn_type == "local" and self.file:
33-
self.conn = pwn.process(str(self.challenge_file))
56+
self.conn = self.pwn.process(str(self.challenge_file), **kwargs)
3457

3558
def recv_menu(self, number=1, display=False, save=False):
3659
"""

docs/README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
1-
## Pdoc
1+
## Documentation
22

3-
Autodocumentation with pdoc
3+
### Module ctfsolver documentation :
44

5-
pdoc ctfsolver --html -o ./docs/pdoc_html/
5+
[ctfsolver](https://nikolasfil.github.io/CTFSolverScript/ctfsolver/)
66

7+
Uses modules :
8+
9+
- pwntools
10+
- scapy
11+
12+
### Module ctfsolver bash commands
13+
14+
find_usage: Finds the python files where ctfsolver is used
15+
folders: Creates the folders (data, files, payloads)
16+
run: Runs the python file payloads/solution.py if it exists
17+
templ: Creates a python payloads/solution.py template for usage

docs/TODO.md renamed to docs/TODO/TODO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
## Publish in pip ?
1414

15-
## Autoamted solver
15+
## Automated solver
1616

1717
- ~Automate the sphynx api documentation ( perhaps a git precommit )~
1818

File renamed without changes.

docs/pdoc/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## Pdoc
2+
3+
Autodocumentation with pdoc
4+
5+
pdoc ctfsolver --html -o ./docs/pdoc_html/
6+

docs/usage/current.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)