首页 > 其他分享 >Wargames-Bandit-Level20

Wargames-Bandit-Level20

时间:2022-12-03 15:23:28浏览次数:40  
标签:Wargames Level bandit20 Level20 nc next Bandit password

Level 20

目录

Level Goal

There is a setuid binary in the homedirectory that does the following: it makes a connection to localhost on the port you specify as a commandline argument. It then reads a line of text from the connection and compares it to the password in the previous level (bandit20). If the password is correct, it will transmit the password for the next level (bandit21).

NOTE: Try connecting to your own network daemon to see if it works as you think

Solution

提示是执行给定的程序,如果收到当前的password就可以给出下一关的password,那么直接nc开一个server监听,然后再起个shell用程序连接即可:

bandit20@bandit:~$ nc -lp 6666
VxCazJaVykI6W36BkBU0mJTCM8rR95XT
NvEJF7oVjkddltPSrdKEFOllh9V1IBcq
bandit20@bandit:~$ ./suconnect 6666
Read: VxCazJaVykI6W36BkBU0mJTCM8rR95XT
Password matches, sending next password

标签:Wargames,Level,bandit20,Level20,nc,next,Bandit,password
From: https://www.cnblogs.com/dyhaohaoxuexi/p/16947750.html

相关文章

  • 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......
  • Wargames-Bandit-Level13
    Level13目录Level13LevelGoalSolutionLevelGoalThepasswordforthenextlevelisstoredin/etc/bandit_pass/bandit14andcanonlybereadbyuserbandit14......
  • Wargames-Bandit-Level5
    Level5目录Level5LevelGoalSolutionLevelGoalThepasswordforthenextlevelisstoredinafilesomewhereundertheinheredirectoryandhasallofthefo......