Pennyw0rth / NetExec

The Network Execution Tool
https://netexec.wiki/
BSD 2-Clause "Simplified" License
3.27k stars 358 forks source link

SyntaxWarning: invalid escape sequence #439

Closed sec13b closed 1 month ago

sec13b commented 1 month ago
 SyntaxWarning: invalid escape sequence '\ '
  """,
 SyntaxWarning: invalid escape sequence '\{'
  command = self.__shell + "echo " + data + f" ^> \\\\127.0.0.1\\{self.__share_name}\\{self.__output} 2^>^&1 > %TEMP%\{self.__batchFile} & %COMSPEC% /Q /c %TEMP%\{self.__batchFile} & %COMSPEC% /Q /c del %TEMP%\{self.__batchFile}"

How i solve this ?

thank you

NeffIsBack commented 1 month ago

Hi, how did you get this warning? Which command and how did you install NetExec?

sec13b commented 1 month ago

i use :

git clone https://github.com/Pennyw0rth/NetExec.git
cd NetExec
poetry install

My first command it was :

poetry run netexec smb 192.168.0.1/24

at first it shows this error, one python file is netexec.py

but i think , i am not sure, is from the last kali 2024.3 version . it shows me at every python script i run.

all show "SyntaxWarning: invalid escape sequence"

NeffIsBack commented 1 month ago

Okay, thanks for reporting! I will fix them soon. Though, these are just syntax warnings and not errors, so they don't affect the programs behaviour.

NeffIsBack commented 1 month ago

Please provide:

sec13b commented 1 month ago

┌──(kali㉿kali)-[~/NetExec] └─$ poetry run netexec --version 1.2.0 - ItsAlwaysDNS - c1780a1a

┌──(kali㉿kali)-[~/NetExec]

NeffIsBack commented 1 month ago

Please provide the file and line number that is included in the warning. Otherwise i won't be able to fix it

sec13b commented 1 month ago

its from kali 2024.3 i did 5 sandbox , i have in all same error