Skip to content

gbourgarel/sdd.ctf.0

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

sdd.ctf.0

A Mini Capture-the-Flag on Git, SSH, and Linux

In this challenge, you must find a command that gives the response to the exercise questions below. All exercises have been designed so that a single command from your local machine can give the correct response. You will need to connect to the remote server to access the files in it and can use the interactive terminal to explore, but try to write your responses as a single command.

You should submit your solutions by making a pull request of this repository, adding a file "solutions/$number.md". The solution must show first the result and the command used to obtain this result.

If a solution has already been accepted, you can propose a different command to get the same solution by creating a pull request which modifies the existing solution file.

Points will be awarded for the first solution and for alternative commands given afterwards. The points ranking will be announced on Slack by Monday, or sooner if all exercises are completed.

Good luck!

Exercises

  1. What is the hostname of our server?
  2. What is the operating system of our server?
  3. How many files (excluding directories) are there in ~/?
  4. How many lines are in the file american-english-large?
  5. How many words in the file american-english-small start with the letter "d"?
  6. How many four-letter words are in the file american-english-small?
  7. What is the last word in the file american-english-small?
  8. How many directories are there in the ~/MLclass/ directory?
  9. How many total files (including directories) are there in the ~/MLclass repository and all subdirectories?
  10. How many python files are in the ~/MLclass repository and subdirectories?
  11. What is the git remote "origin" url of the ~/MLclass repository?
  12. What is the short version of the commit ID of the most recent commit of the ~/MLclass repository?
  13. How many submodules are in the ~/MLclass repository?
  14. How many submodules are in the ~/Griddly repository?
  15. How many branches are in the ~/Griddly repository?
  16. What does the python script.py output when run?

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published