Skip to content

Commit a4896c8

Browse files
committed
Fix Python 3.12 Syntax Warnings (use raw strings)
1 parent ea0ae5a commit a4896c8

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import string
33

44
DESCRIPTION = ""\
5-
r"""
5+
"""
66
_ __ _ ___
77
/ \| \ / \|_ _|
88
( o ) o ) o || |

DbmsScheduler.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ def __init__(self,args):
2626
logging.debug("DbmSscheduler object created")
2727
OracleDatabase.__init__(self,args)
2828
self.jobName = None
29-
self.CMD_WIND_PATH = r"c:\windows\system32\cmd.exe"
30-
self.PS_X86_PATH = r"""C:\windows\syswow64\windowspowershell\\v1.0\powershell.exe"""
31-
self.PS_X64_PATH = r"""C:\Windows\System32\WindowsPowerShell\\v1.0\powershell.exe"""
29+
self.CMD_WIND_PATH = "c:\windows\system32\cmd.exe"
30+
self.PS_X86_PATH = r"""C:\windows\syswow64\windowspowershell\v1.0\powershell.exe"""
31+
self.PS_X64_PATH = r"""C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"""
3232

3333
def __removeJob__(self, jobName, force=False, defer=True):
3434
'''
@@ -168,7 +168,7 @@ def giveReverseShell(self, localip, localport, httpServerTimeout=15, targetFilen
168168
- targetFilename: path to the file on the target (Windows Only)
169169
'''
170170
if self.remoteSystemIsWindows() == True :
171-
CMD_EXEC_FILE = r".\{0}"
171+
CMD_EXEC_FILE = ".\{0}"
172172
CMD_DEL_FILE = "del {0}"
173173
httpPort = None
174174
CMD = self.getReverseShellPowershellCommand(localip, localport)

Java.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self,args):
1717
'''
1818
logging.debug("Java object created")
1919
OracleDatabase.__init__(self,args)
20-
self.SOURCE_OS_COMMAND_CLASS = r"""
20+
self.SOURCE_OS_COMMAND_CLASS = """
2121
CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "OSCommand" AS
2222
import java.io.*;
2323
public class OSCommand {

Tnspoison.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def handle_read(self):
6969
logging.debug('Your string {0} is not in the packet received.'.format(repr(self.replaceStr[0])))
7070
if self.nbRcvd == 0 and len(self.args['sid']) in [9,10,11,12]:
7171
logging.debug('SID >= 9. Consequently, we need modify the Connection String in the first packet of a communication.')
72-
searchCS = re.search(r'\(DESCRIPTION(.*)\)$',read)
72+
searchCS = re.search('\(DESCRIPTION(.*)\)$',read)
7373
if searchCS == None:
7474
logging.debug('Connection String was not found in this first packet: anomalous. No aletration of this packet')
7575
else:

0 commit comments

Comments
 (0)