please fix to error console using python
jolsandres (0)

the problem is to using php with to next line shell_exec() showed Permised denied but when using python and the next code (from os import walk
while True:
direction = input("Direction: ")
for root, dirs, files in walk(direction):
for arch in files:
print(root+arch)) , showed all directions and files to server , really is bad?

You are viewing a single comment. View All
ash15khng (393)

I don't understand?? Could you please be a bit clearer and post your code in the repl? What do you mean by "really is bad"??

jolsandres (0)

@ash15khng the code for python is :
from os import walk
direction = "/"
for root, dirs, files in walk(direction):
for arch in files:

print(root+arch)

This code is used to search all directories and files on the server, pd: bad in the sense that if you can later use it to get information.