Skip to content

Instantly share code, notes, and snippets.

@forestbaker
Last active November 20, 2015 05:16
Show Gist options
  • Save forestbaker/c58761c06b82a606591e to your computer and use it in GitHub Desktop.
Save forestbaker/c58761c06b82a606591e to your computer and use it in GitHub Desktop.
extract all extensions, usernames and passwords from the asterisk sip.conf file
# this will extract all extensions, usernames and passwords from the asterisk sip.conf file
# Remove the -- from egrep to see the relation of username to pass
egrep -B2 'username=....' /etc/asterisk/sip.conf | egrep -v 'host|vmexten|--' | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment