Skip to content

Commit

Permalink
1.4.4 reformated code
Browse files Browse the repository at this point in the history
used ruff (with indent-size = 2) to reformat code
  • Loading branch information
gfelber committed Sep 14, 2024
1 parent c58da59 commit 15f1ba3
Show file tree
Hide file tree
Showing 16 changed files with 1,747 additions and 1,570 deletions.
40 changes: 20 additions & 20 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
[project]
name = "vagd"
version = "1.4.3"
version = "1.4.4"
authors = [{ name = "0x6fe1be2" }]
description = "VirtuAlization GDb integrations in pwntools"
readme = "README.md"
requires-python = ">=3.7"
dependencies = ['pwntools', 'docker', 'typer', 'rich']
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
"Operating System :: POSIX :: Linux",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
"Operating System :: POSIX :: Linux",
]
keywords = [
'vagd',
'pwn',
'pwntools',
'exploit',
'ctf',
'capture',
'the',
'flag',
'binary',
'vagrant',
'qemu',
'docker',
'vagd',
'pwn',
'pwntools',
'exploit',
'ctf',
'capture',
'the',
'flag',
'binary',
'vagrant',
'qemu',
'docker',
]

[project.scripts]
Expand All @@ -38,10 +38,10 @@ where = ["src"]

[tool.setuptools.package-data]
"vagd.res" = [
"template.txt",
"seccomp.json",
"local_template.txt",
"aliases.txt",
"template.txt",
"seccomp.json",
"local_template.txt",
"aliases.txt",
]
"vagd.gdb" = ["*.pyi"]

Expand Down
3 changes: 0 additions & 3 deletions src/vagd/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
from vagd.box import Box
from vagd.virts import *



4 changes: 2 additions & 2 deletions src/vagd/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import vagd.cli as cli

if __name__ == '__main__':
cli.start()
if __name__ == "__main__":
cli.start()
43 changes: 23 additions & 20 deletions src/vagd/box.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
class Box:
""" constants class for recommended images and boxes """
VAGRANT_JAMMY64 = 'ubuntu/jammy64'
VAGRANT_FOCAL64 = 'ubuntu/focal64'
VAGRANT_BIONIC64 = 'ubuntu/bionic64'
VAGRANT_XENIAL64 = 'ubuntu/xenial64'
QEMU_NOBLE = 'https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img'
QEMU_JAMMY = 'https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img'
QEMU_FOCAL = 'https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img'
QEMU_BIONIC = 'https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img'
QEMU_XENIAL = 'https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img'
QEMU_JAMMY_ARM = 'https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-arm64.img'
DOCKER_NOBLE = 'ubuntu:noble'
DOCKER_JAMMY = 'ubuntu:jammy'
DOCKER_FOCAL = 'ubuntu:focal'
DOCKER_BIONIC = 'ubuntu:bionic'
DOCKER_XENIAL = 'ubuntu:xenial'
DOCKER_I386_FOCAL = 'i386/ubuntu:focal'
DOCKER_I386_BIONIC = 'i386/ubuntu:bionic'
DOCKER_I386_XENIAL = 'i386/ubuntu:xenial'
DOCKER_ALPINE_316 = 'alpine:3.16.6'
"""constants class for recommended images and boxes"""

VAGRANT_JAMMY64 = "ubuntu/jammy64"
VAGRANT_FOCAL64 = "ubuntu/focal64"
VAGRANT_BIONIC64 = "ubuntu/bionic64"
VAGRANT_XENIAL64 = "ubuntu/xenial64"

QEMU_NOBLE = "https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img"
QEMU_JAMMY = "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
QEMU_FOCAL = "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img"
QEMU_BIONIC = "https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img"
QEMU_XENIAL = "https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img"
QEMU_JAMMY_ARM = "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-arm64.img"

DOCKER_NOBLE = "ubuntu:noble"
DOCKER_JAMMY = "ubuntu:jammy"
DOCKER_FOCAL = "ubuntu:focal"
DOCKER_BIONIC = "ubuntu:bionic"
DOCKER_XENIAL = "ubuntu:xenial"
DOCKER_I386_FOCAL = "i386/ubuntu:focal"
DOCKER_I386_BIONIC = "i386/ubuntu:bionic"
DOCKER_I386_XENIAL = "i386/ubuntu:xenial"
DOCKER_ALPINE_316 = "alpine:3.16.6"
Loading

0 comments on commit 15f1ba3

Please sign in to comment.