Skip to content

Commit 01c0408

Browse files
committed
1.3.9 fixed bug in Qegd
fixed port forwarding bug
1 parent 3cbe6ca commit 01c0408

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "vagd"
3-
version = "1.3.8"
3+
version = "1.3.9"
44
authors = [{ name = "0x6fe1be2" }]
55
description = "VirtuAlization GDb integrations in pwntools"
66
readme = "README.md"

src/vagd/virts/qegd.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def _qemu_start(self):
207207
helper.info(f"starting qemu machine, ssh port {self._port}")
208208
with open(Qegd.LOCKFILE, 'w') as lockfile:
209209
lockfile.write(str(self._port))
210-
port_forwarding = "".join(Qegd._QEMU_PORT_FORWARDING.format(type=host.split('/')[0], host=host.split('/')[1], guest=guest)
210+
port_forwarding = "".join(Qegd._QEMU_PORT_FORWARDING.format(type=host.split('/')[1], host=host.split('/')[0], guest=guest)
211211
for host, guest in self._forward.items())
212212
qemu_cmd = Qegd._QEMU_START.format(qemu=self._qemu,
213213
machine=f'{Qegd.DEFAULT_QEMU_MACHINE_PREFIX} {self._machine}' if self._machine else '',

0 commit comments

Comments
 (0)