'';查找'';和'';查找/'';关于linux命令
我正在解决越界强盗的问题。我找了一些解决方案,但没有解释。 例如,当我使用'';查找'';和'';查找/'';关于linux命令,linux,ctf,bandit,Linux,Ctf,Bandit,我正在解决越界强盗的问题。我找了一些解决方案,但没有解释。 例如,当我使用find.在bandit 5->6上查找它时 bandit5@bandit:~/inhere$ find . -type f -readable ! -executable -size 1033c **./maybehere07/.file2** bandit5@bandit:~/inhere$ cat ./maybehere07/.file2 **DXjZPULLxYr17uwoI01bNLQbtFemEgo7**
find.
在bandit 5->6上查找它时
bandit5@bandit:~/inhere$ find . -type f -readable ! -executable -size 1033c
**./maybehere07/.file2**
bandit5@bandit:~/inhere$ cat ./maybehere07/.file2
**DXjZPULLxYr17uwoI01bNLQbtFemEgo7**
我在bandit6->7上使用了find.
在解决方案中,他们使用find/
bandit6@bandit:~$ find / -user bandit7 -group bandit6 -size 33c 2>/dev/null
/var/lib/dpkg/info/bandit7.password
两者都是ASCII文本,因此路径参数告诉
find
在哪里搜索有什么区别。如果使用
,它将只在当前目录的子目录中搜索,而/
表示根目录,即它将搜索所有地方。事实上,正如您所看到的,/var/lib/dpkg/info/
不是~/inhere
的子目录,如果您谈论的是linuxfind
命令:
find。[其他表达式]
表示您希望根据当前目录查找文件
而find/[other expressions]
表示您希望基于根目录(/
)查找文件