bind-shell 0.1.0__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bind-shell
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: A Typer CLI for creating and connecting to bind shells and reverse shells. Built on Python's stdlib socket — no external dependencies.
5
5
  License: MIT
6
6
  Author: Tyson Holub
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.14
16
16
  Requires-Dist: typer (>=0.13,<0.14)
17
17
  Description-Content-Type: text/markdown
18
18
 
19
- # bind-shell ![PyPi](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-%2344CC11)
19
+ # bind-shell [![PyPi](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-%2344CC11)](https://pypi.org/project/bind-shell/) [![PyPiStats](https://img.shields.io/pypi/dm/bind-shell.svg)](https://pypistats.org/packages/bind-shell)
20
20
 
21
21
  A Typer CLI for creating and connecting to bind shells and reverse shells. Built on Python's stdlib socket — no external dependencies.
22
22
 
@@ -121,5 +121,5 @@ Type `exit` or `quit` to close a session.
121
121
 
122
122
  ## Boilerplate
123
123
 
124
- This project tracks the [pyplate](git@gitlab.com:tysonholub/pyplate.git) boilerplate via the `boilerplate` git remote. Run `just update_boilerplate` to pull latest changes. **NOTE**: keep the boilerplate remote history intact to successfully merge future updates.
124
+ This project tracks the [pyplate](https://gitlab.com/tysonholub/pyplate) boilerplate via the `boilerplate` git remote. Run `just update_boilerplate` to pull latest changes. **NOTE**: keep the boilerplate remote history intact to successfully merge future updates.
125
125
 
@@ -1,4 +1,4 @@
1
- # bind-shell ![PyPi](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-%2344CC11)
1
+ # bind-shell [![PyPi](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-%2344CC11)](https://pypi.org/project/bind-shell/) [![PyPiStats](https://img.shields.io/pypi/dm/bind-shell.svg)](https://pypistats.org/packages/bind-shell)
2
2
 
3
3
  A Typer CLI for creating and connecting to bind shells and reverse shells. Built on Python's stdlib socket — no external dependencies.
4
4
 
@@ -103,4 +103,4 @@ Type `exit` or `quit` to close a session.
103
103
 
104
104
  ## Boilerplate
105
105
 
106
- This project tracks the [pyplate](git@gitlab.com:tysonholub/pyplate.git) boilerplate via the `boilerplate` git remote. Run `just update_boilerplate` to pull latest changes. **NOTE**: keep the boilerplate remote history intact to successfully merge future updates.
106
+ This project tracks the [pyplate](https://gitlab.com/tysonholub/pyplate) boilerplate via the `boilerplate` git remote. Run `just update_boilerplate` to pull latest changes. **NOTE**: keep the boilerplate remote history intact to successfully merge future updates.
@@ -26,7 +26,7 @@ pythonpath = ["pysrc"]
26
26
 
27
27
  [tool.poetry]
28
28
  name = "bind-shell"
29
- version = "0.1.0"
29
+ version = "0.1.2"
30
30
  description = "A Typer CLI for creating and connecting to bind shells and reverse shells. Built on Python's stdlib socket — no external dependencies."
31
31
  authors = ["Tyson Holub <tyson@tysonholub.com>"]
32
32
  license = "MIT"
@@ -22,7 +22,7 @@ def main():
22
22
 
23
23
  def _get_wan_ip() -> str | None:
24
24
  try:
25
- with urllib.request.urlopen("https://api.ipify.org", timeout=5) as resp:
25
+ with urllib.request.urlopen("https://api.ipify.org", timeout=5) as resp: # nosec: B310
26
26
  return resp.read().decode()
27
27
  except Exception:
28
28
  return None
@@ -47,7 +47,7 @@ def _generate_password() -> str:
47
47
 
48
48
  @cli.command(name="server", help="Bind shell: bind a port and execute commands from an incoming client")
49
49
  def server(
50
- host: Annotated[str, typer.Option("--host", help="Host address to bind to")] = "0.0.0.0",
50
+ host: Annotated[str, typer.Option("--host", help="Host address to bind to")] = "0.0.0.0", # nosec: B104
51
51
  port: Annotated[int, typer.Option("--port", help="Port to listen on")] = DEFAULT_PORT,
52
52
  ):
53
53
  ip = get_ip()
@@ -67,7 +67,7 @@ def client(
67
67
 
68
68
  @cli.command(name="listen", help="Reverse shell: bind a port and send commands to an incoming connector")
69
69
  def listen(
70
- host: Annotated[str, typer.Option("--host", help="Host address to bind to")] = "0.0.0.0",
70
+ host: Annotated[str, typer.Option("--host", help="Host address to bind to")] = "0.0.0.0", # nosec: B104
71
71
  port: Annotated[int, typer.Option("--port", help="Port to listen on")] = DEFAULT_PORT,
72
72
  ):
73
73
  ip = get_ip()
@@ -1,5 +1,5 @@
1
1
  import socket
2
- import subprocess
2
+ import subprocess # nosec: B404
3
3
  import sys
4
4
  import threading
5
5
 
@@ -82,7 +82,7 @@ def _executor_session(conn: socket.socket, addr: tuple, password: str):
82
82
  logger.info(f"Authentication failed: {addr[0]}:{addr[1]}")
83
83
  return
84
84
  try:
85
- _executor_loop(conn, prompt=f"bind-shell@{addr[0]}$ ".encode())
85
+ _executor_loop(conn, prompt=f"bind-shell@{conn.getsockname()[0]}$ ".encode())
86
86
  finally:
87
87
  logger.info(f"Client disconnected: {addr[0]}:{addr[1]}")
88
88
 
File without changes