tutorial · bandit

Bandit Level 31 → 32

Create the required file, account for ignore rules, and push it to the remote.

By

banditgitpushgitignore
Marks this level complete in your browser.

Goal

Follow the repository README to create and push the requested file to the remote repository.

Why this matters

A successful Git contribution depends on working-tree content, ignore behavior, staging, commits, and remote updates.

Progressive hints

  1. Hint 1

    Treat README as the exact contract.

  2. Hint 2

    Inspect .gitignore if Git refuses to stage the requested file.

  3. Hint 3

    Verify the staged diff before committing and pushing.

Method

Run only the lines that match the evidence you observe.

cat README && cat .gitignore
# Create the exact file and content requested by the live README.
git add -f <requested-file> && git diff --cached
git commit -m 'Add requested file' && git push

Expected non-secret observation

The remote hook evaluates the pushed commit and returns the next credential in its response.

Explanation

The force-add flag overrides an ignore rule for one intentional path; the remote hook validates the new commit.

Troubleshooting

  • Match filename, content, branch, and newline exactly.
  • Review git status and the staged diff before committing.

Safety and cleanup

  • Use only the OverTheWire game host and your own local practice directory.
  • Do not paste a level password into this site, screenshots, notes, or submissions. Baitaphish never asks for credentials.
  • Treat commands as learning prompts: inspect paths and flags before running them.

Completion and next step

Use the recovered credential only in the official Level 32 login. Then mark this transition complete and continue.