Skip to content

Commit

Permalink
PS2 Random Function Name Letter Only for First Character (#172)
Browse files Browse the repository at this point in the history
* fix non-ascii filename downloading error.when download files with non-ascii filename,the 'length' part in the packet is the length of string but not bytes,so throw an index-out-of-bounts error

* fix TLS cipher suite random choice not compatible with powershell 2 on windows 7

* Fix for PS2 function name issue #169

Co-authored-by: tyraniter <tyraniter@gmail.com>
  • Loading branch information
Hubbl3 and tyraniter authored Apr 22, 2020
1 parent e038621 commit 96ebbb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup/setup_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@
"Invoke_Mimikatz" text
)''')

rand1 = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(5))
rand2 = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(5))
rand1 = random.choice(string.ascii_uppercase) + ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(4))
rand2 = random.choice(string.ascii_uppercase) + ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(4))
c.execute("INSERT INTO functions VALUES(?,?)", (rand1, rand2))

# commit the changes and close everything off
Expand Down

0 comments on commit 96ebbb2

Please sign in to comment.