Hello im working on a Python project that makes my pentesting easier. I made the code in Visual Studio Code and pasted the code to my Kali Linux virtual machine. I got a error that says
TabError: inconsistent use of tabs and spaces in indentation
In Visual Studio Code, the code worked perfectly fine and i didn't get the error, but when i pasted the code into my Kali Linux i got that error. And if someone says to me, "Use the indetation converter in Visual Studio", i have already done that but it doesn't seem to work...
Here is the part of code, i'm not completely sure, if the community needs the whole code so i will just put the def function included code:
Problem is at "###" marks
def gobuster(target):
if plat == "Windows" or plat == "windows":
os.system("cls")
if plat == "Linux" or plat == "linux":
os.system('clear')
print("Gobuster\n...")
print(''' 1# Basic Scan:
2# Without progress monitoring ''')
ids = int(input("Enter the ID of the scan: "))
if ids == 1:
os.system("Touch %s_gobuster.txt" % target)
###
buster = "gobuster dir -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -no-error -t 60 -o /home/kali/Desktop/ -u " + target
os.system(buster)
###