首页 > 其他分享 >OverTheWire攻关过程-Bandit模块2

OverTheWire攻关过程-Bandit模块2

时间:2023-04-22 17:34:14浏览次数:32  
标签:攻关 文件 查看 主目录 dev cat Bandit 使用 OverTheWire


我们打开lv1-lv2查看信息


OverTheWire攻关过程-Bandit模块2_特殊字符


机器翻译如下:


下一级别的密码存储在名为的文件中-位于主目录中


我们登陆查看下


OverTheWire攻关过程-Bandit模块2_机器翻译_02


发现只有一个横杠


OverTheWire攻关过程-Bandit模块2_机器翻译_03

cd不进入,cat查看不了


OverTheWire攻关过程-Bandit模块2_特殊字符_04


原来是一个特殊字符


OverTheWire攻关过程-Bandit模块2_特殊字符_05


使用


cat ./-


可以查看文件内容


OverTheWire攻关过程-Bandit模块2_特殊字符_06


OverTheWire攻关过程-Bandit模块2_主目录_07


知识点:


这种方法有很多误解,因为使用 - 作为参数是指 STDIN/STDOUT 即 dev/stdin 或 dev/stdout 。所以如果你想打开这种类型的文件,你必须指定文件的完整位置,例如作为 ./- 。例如。 ,如果您想查看该文件中的内容,请使用 cat ./-

标签:攻关,文件,查看,主目录,dev,cat,Bandit,使用,OverTheWire
From: https://blog.51cto.com/apple0/6215410

相关文章

  • 「解题报告」CF960G Bandit Blues
    无脑的APJ用最无脑的方法解题!!!做了两天图论脑子爆炸后的apj寻求精神慰藉首先考虑\(n\)一定是从前往后的最大值与从后往前的最大值,这样我们只需要求出长度为\(n\),有\(k\)个前缀最大值的排列数量,记作\(f_{n,k}\)。考虑每次将当前排列中的最大值与最大值后面的排列去掉,这......
  • Wargames-Bandit-Level20
    Level20目录Level20LevelGoalSolutionLevelGoalThereisasetuidbinaryinthehomedirectorythatdoesthefollowing:itmakesaconnectiontolocalhoston......
  • Wargames-Bandit-Level19
    Level19目录Level19LevelGoalSolutionLevelGoalTogainaccesstothenextlevel,youshouldusethesetuidbinaryinthehomedirectory.Executeitwithout......
  • Wargames-Bandit-Level18
    Level18目录Level18LevelGoalSolutionLevelGoalThepasswordforthenextlevelisstoredinafilereadmeinthehomedirectory.Unfortunately,someonehas......
  • Wargames-Bandit-Level17
    Level17目录Level17LevelGoalSolutionLevelGoalThereare2filesinthehomedirectory:passwords.oldandpasswords.new.Thepasswordforthenextlevelis......
  • Wargames-Bandit-Level16
    Level16目录Level16LevelGoalSolutionLevelGoalThecredentialsforthenextlevelcanberetrievedbysubmittingthepasswordofthecurrentleveltoapor......
  • Wargames-Bandit-Level12
    Level12目录Level12LevelGoalSolutionLevelGoalThepasswordforthenextlevelisstoredinthefiledata.txt,whichisahexdumpofafilethathasbeenr......
  • Wargames-Bandit-Level11
    Level11目录Level11LevelGoalSolutionLevelGoalThepasswordforthenextlevelisstoredinthefiledata.txt,wherealllowercase(a-z)anduppercase(A-Z......
  • Wargames-Bandit-Level15
    Level15目录Level15LevelGoalSolutionLevelGoalThepasswordforthenextlevelcanberetrievedbysubmittingthepasswordofthecurrentleveltoport300......
  • Wargames-Bandit-Level14
    Level14目录Level14LevelGoalSolutionLevelGoalThepasswordforthenextlevelcanberetrievedbysubmittingthepasswordofthecurrentleveltoport300......