Make code snippets easier to see

bug/bundler_fix
Jonathan Claudius 2017-04-18 19:50:57 -04:00
parent 17aac0046b
commit a80355a4a7
No known key found for this signature in database
GPG Key ID: 4BCDD990313DFA87
1 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,8 @@ Kali Linux, HG 4.0 and a customized hg-ssh (to simulate custom hg-ssh wrappers w
1. Install mercurial on your test server
2. Patch the hg-ssh Python script script to emulate custom/weak repo validation in hg-ssh wrapper `vi $(which hg-ssh)`
- Replace "if repo in allowed paths:" with "if True:"
- Replace "cmd = ['-R', repo, 'serve', 'stdio']" with "cmd = ['-R', path, 'serve', 'stdio']"
- Replace `if repo in allowed paths:` with `if True:`
- Replace `cmd = ['-R', repo, 'serve', 'stdio']` with `cmd = ['-R', path, 'serve', 'stdio']`
3. Setup a user with SSH pubkey auth
4. Create a test repo in the users home directory and add a commit
- `mkdir -p repos/repo1`