diff --git a/fedstats.py b/fedstats.py old mode 100644 new mode 100755 diff --git a/parseGroup.py b/parseGroup.py index 3efd577..e83b843 100644 --- a/parseGroup.py +++ b/parseGroup.py @@ -10,14 +10,14 @@ class GroupParser: self.config = configparser.RawConfigParser() try: self.config.read('config.cfg') - self.username = self.config.get('fas', 'username').strip('\'') - self.password = self.config.get('fas', 'password').strip('\'') + self.username = self.config.get('FAS', 'user').strip('\'') + self.password = self.config.get('FAS', 'pass').strip('\'') self.check_config() except: print("[*] Invalid / Missing Configuration file.") def check_config(self): if self.username.strip('\'') == 'FAS_USERNAME_HERE': - print("[*] Please enter FAS credentials in fas_credentials.cfg") + print("[*] Please enter FAS credentials in config.cfg") return False else: return True @@ -31,5 +31,5 @@ class GroupParser: except AuthError: print("[*] Invalid Username / Password") return 1 - userlist = [user_desc.values()[0] for user_desc in group_json] + userlist = [user_desc['username'] for user_desc in group_json] return userlist