def play_all_user_cards(self, selection): if len(self.active_player.hand) == 0: print_red("No cards left to play") os.system(["clear", "cls"][os.name == "nt"]) # play all cards until therea re no more while self.active_player.hand: self.play_user_card(selection="c0")
def play_all_user_cards(self, selection): if len(self.active_player.hand) == 0: print_red('No cards left to play') os.system(['clear','cls'][os.name == 'nt']) # play all cards until therea re no more while self.active_player.hand: self.play_user_card(selection='c0')
def player_loop(self): print_red("remaining points %s" % self.points) if self.active_player.active: self.normal_action() else: self.next_player_turn() if self.points <= 0: self.game_active = False print_red("-----GAME OVER------") self.print_results()
def player_loop(self): print_red('remaining points %s' % self.points) if self.active_player.active: self.normal_action() else: self.next_player_turn() if self.points <= 0: self.game_active = False print_red('-----GAME OVER------') self.print_results()
if option == "-ip": ip = args[idx + 1] if option == "-p": port = args[idx + 1] if option == "-nw": no_warnings = True if option == "-ps": scan_multiple_ports = True port = args[idx + 1] else: continue if not ip or not port: show_help() else: scan(ip, port, scan_multiple_ports, no_warnings) else: show_help() if __name__ == "__main__": try: main() except: print_red("\nForced To Quit !!\n")
# # VIEWSTATE module from https://github.com/yuvadm/viewstate.git # # spinfoo import viewstate import exceptions import sys import colors as c # # @TODO: Pass URL, parse content and print __VIEWSTATE decoded! # ## Valid format: "/wEPDwU[a-zA-Z0-9=]+" c.print_red("** ASP.NET __VIEWSTATE decoder **\n") if len(sys.argv) != 2: print("Usage: decoder.py \"<__VIEWSTATE ASP.NET string>\"") print( "Example: decoder.py \"/wEPDwUKMTU5MTA2ODYwOWRkoCvvBWgUOH7PD446qvEOF6GTCq0=\"" ) sys.exit() vst = sys.argv[1] c.print_blue("[*] Decoding __VIEWSTATE:") print(vst) try: vs = viewstate.ViewState(vst) c.print_green(str(vs.decode()))