Make code snippets easier to see
parent
17aac0046b
commit
a80355a4a7
|
@ -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`
|
||||
|
|
Loading…
Reference in New Issue