Skip to content

Instantly share code, notes, and snippets.

@ksl-fourwalls
Last active December 3, 2025 09:02
Show Gist options
  • Select an option

  • Save ksl-fourwalls/b90aa797e3b14a2dcd41d4d803126ee9 to your computer and use it in GitHub Desktop.

Select an option

Save ksl-fourwalls/b90aa797e3b14a2dcd41d4d803126ee9 to your computer and use it in GitHub Desktop.
Bypassing Cisco Packet Tracer Login

ByPassing Cisco Packet Tracer Login

Due to some Reason I am not able to login with my email So I decided to bypass it. Where to Start ? From Previous Imformation We collected, When we click close

Cisco Packet Tracer Login Window

We get 'shutting down' message so I search for reference string in IDA.

IDA Shutting down string

JNZ's

From this point After tracking upward node I found two checks related jnz, after doing dynamic debugging I found out that they both instruction are causing Shutting down of application So I changed both instruction jz instead of jnz

This will give us what we need. Login prompt will prompt but It will not shutdown our Application. Here is the Python Script that will patch binary

import sys, os

# replace jnz check with jz
FIRST_JNZ_CHECK =  0x22265cb+1
SECOND_JNZ_CHECK = 0x2226920+1

if len(sys.argv) == 2:
	# file must exists
	fild = os.open(sys.argv[1], os.O_WRONLY)
	assert fild != -1

	# open file from file descriptor
	cisco_binary = os.fdopen(fild, 'wb')

	# write first jz byte
	cisco_binary.seek(FIRST_JNZ_CHECK)
	cisco_binary.write(b"\x84")

	# write second jz byte
	cisco_binary.seek(SECOND_JNZ_CHECK)
	cisco_binary.write(b"\x84")

	# binary patched lets close it.
	cisco_binary.close()
@yassine20011
Copy link

Thanks, I found a solution using Firejail

@Lorg0n
Copy link

Lorg0n commented Sep 8, 2025

firejail works very well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment