Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added Python 3.13 support#295

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
D3vil0p3r wants to merge4 commits intocalebstewart:master
base:master
Choose a base branch
Loading
fromD3vil0p3r:patch-1
Open
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
Added Python 3.13 support
  • Loading branch information
@D3vil0p3r
D3vil0p3r authoredApr 3, 2025
commit34a6aed14237e339d9c1b6e9ce26fa9ad5cbe95b
13 changes: 6 additions & 7 deletionspwncat/commands/__init__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -43,6 +43,7 @@ def run(self, manager: "pwncat.manager.Manager", args: "argparse.Namespace"):
import pkgutil
import termios
import argparse
import importlib
from io import TextIOWrapper
from enum import Enum, auto
from typing import Dict, List, Type, Callable, Iterable
Expand DownExpand Up@@ -432,22 +433,20 @@ def __init__(self, manager: "pwncat.manager.Manager"):
for loader, module_name, is_pkg in pkgutil.walk_packages(__path__):
if module_name == "base":
continue
self.commands.append(
loader.find_module(module_name)
.load_module(module_name)
.Command(manager)
)
full_module_name = f"{__name__}.{module_name}"
module = importlib.import_module(full_module_name)
self.commands.append(module.Command(manager))

self.prompt: PromptSession = None
self.toolbar: PromptSession = None
self.loading_complete = False
self.aliases: Dict[str, CommandDefinition] = {}
self.shortcuts: Dict[str, CommandDefinition] = {}
self.found_prefix: bool = False
# Saved terminal state to support switching between raw and normal
# mode.
# Saved terminal state to support switching between raw and normal mode.
self.saved_term_state = None


def setup_prompt(self):
"""This needs to happen after __init__ when the database is fully
initialized."""
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp