mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-30 23:47:45 +03:00 
			
		
		
		
	Minor update for an Issue #287
This commit is contained in:
		
							parent
							
								
									a6448e8768
								
							
						
					
					
						commit
						af52e8e8c2
					
				|  | @ -60,20 +60,24 @@ if __name__ == "__main__": | ||||||
|     except ImportError: |     except ImportError: | ||||||
|         pass |         pass | ||||||
| 
 | 
 | ||||||
|     server = xmlrpclib.ServerProxy("http://localhost:%d" % (int(sys.argv[1]) if len(sys.argv) > 1 else 8776)) |     try: | ||||||
| 
 |         addr = "http://localhost:%d" % (int(sys.argv[1]) if len(sys.argv) > 1 else 8776) | ||||||
|     print "[o] Server instance: 'server'" |         print "[i] Starting debug XML-RPC client to '%s'..." % addr | ||||||
|     print "[i] Available RPC methods: %s" % str(server.system.listMethods()).strip("[]") |         server = xmlrpclib.ServerProxy(addr) | ||||||
|     print "[i] Sample usage: 'server.system.listMethods()'" |         print "[i] Available RPC methods: %s" % str(server.system.listMethods()).strip("[]") | ||||||
| 
 |         print "[i] Server instance name: 'server'" | ||||||
|     while True: |         print "[i] Sample usage: 'server.system.listMethods()'" | ||||||
|         try: |     except Exception, ex: | ||||||
|             _ = raw_input("> ") |         print "[x] '%s'" % str(ex) | ||||||
|             if not _.startswith("print"): |     else: | ||||||
|                 print eval(_) or "" |         while True: | ||||||
|             else: |             try: | ||||||
|                 exec(_) |                 _ = raw_input("> ") | ||||||
|         except KeyboardInterrupt: |                 if not _.startswith("print"): | ||||||
|             exit(0) |                     print eval(_) or "" | ||||||
|         except Exception, ex: |                 else: | ||||||
|             print "[x] '%s'" % str(ex) |                     exec(_) | ||||||
|  |             except KeyboardInterrupt: | ||||||
|  |                 exit(0) | ||||||
|  |             except Exception, ex: | ||||||
|  |                 print "[x] '%s'" % str(ex) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user