> For the complete documentation index, see [llms.txt](https://davidtancredi.gitbook.io/pentesting-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://davidtancredi.gitbook.io/pentesting-notes/r3dcl1ff/exploitation-deprecated-node/password-cracking/bash-for-password-creation-or-cracking.md).

# Bash for password creation | cracking

**#Script 1: edit "user" with target to create alphanumerical combos**

```
#!/bin/bash

for i in {0..9}; do
   for j in {0..9}; do
      for k in {0..9}; do
         echo "user$i$j$k" >> password.txt
      done         
   done
done
```

**#Script2:custom URL generator for fuzzing, a bit crude but does the trick**

```
#!/bin/bash

for i in {tokyo,beijing,newyork,rome,bangkok,osaka}; do
   for j in {0..9}; do
      for k in {0..9}; do
         echo "http://example/com/$i/$j/$k" >> password.txt
      done
   done
done
```
