fix_source_code.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. Description: Fixed the file cupp.cfg location and fixed
  2. the hashbang of cupp3.py.
  3. Author: Marcio de Souza Oliveira <m.desouza20@gmail.com>
  4. Last-Update: 2016-09-22
  5. Index: cupp-0.0+20160624.git07f9b8/cupp.py
  6. ===================================================================
  7. --- cupp-0.0+20160624.git07f9b8.orig/cupp.py
  8. +++ cupp-0.0+20160624.git07f9b8/cupp.py
  9. @@ -45,7 +45,7 @@ import csv
  10. # Reading configuration file...
  11. config = ConfigParser.ConfigParser()
  12. -config.read('cupp.cfg')
  13. +config.read('/etc/cupp.cfg')
  14. years = config.get('years', 'years').split(',')
  15. chars = config.get('specialchars', 'chars').split(',')
  16. Index: cupp-0.0+20160624.git07f9b8/cupp3.py
  17. ===================================================================
  18. --- cupp-0.0+20160624.git07f9b8.orig/cupp3.py
  19. +++ cupp-0.0+20160624.git07f9b8/cupp3.py
  20. @@ -1,4 +1,4 @@
  21. -#!/usr/bin/env python3
  22. +#!/usr/bin/python3
  23. #
  24. # Muris Kurgas aka j0rgan
  25. # j0rgan [at] remote-exploit [dot] org
  26. @@ -96,7 +96,7 @@ def version():
  27. sys.exit()
  28. -def read_config(filename='cupp.cfg'):
  29. +def read_config(filename='/etc/cupp.cfg'):
  30. """Read the given configuration file and update global variables to reflect
  31. changes (CONFIG, FTP_CONFIG, LEET_CONFIG)."""
  32. #global CONFIG, FTP_CONFIG, LEET_CONFIG