mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 09:57:38 +03:00 
			
		
		
		
	Fixes #1822
This commit is contained in:
		
							parent
							
								
									8bbfee7591
								
							
						
					
					
						commit
						5d09f7b85f
					
				| 
						 | 
				
			
			@ -19,7 +19,7 @@ from lib.core.enums import OS
 | 
			
		|||
from lib.core.revision import getRevisionNumber
 | 
			
		||||
 | 
			
		||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
 | 
			
		||||
VERSION = "1.0.5.13"
 | 
			
		||||
VERSION = "1.0.5.14"
 | 
			
		||||
REVISION = getRevisionNumber()
 | 
			
		||||
STABLE = VERSION.count('.') <= 2
 | 
			
		||||
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -7,6 +7,7 @@ See the file 'doc/COPYING' for copying permission
 | 
			
		|||
 | 
			
		||||
import os
 | 
			
		||||
import re
 | 
			
		||||
import select
 | 
			
		||||
import sys
 | 
			
		||||
import tempfile
 | 
			
		||||
import time
 | 
			
		||||
| 
						 | 
				
			
			@ -47,8 +48,6 @@ from lib.core.subprocessng import recv_some
 | 
			
		|||
 | 
			
		||||
if IS_WIN:
 | 
			
		||||
    import msvcrt
 | 
			
		||||
else:
 | 
			
		||||
    from select import select
 | 
			
		||||
 | 
			
		||||
class Metasploit:
 | 
			
		||||
    """
 | 
			
		||||
| 
						 | 
				
			
			@ -550,7 +549,7 @@ class Metasploit:
 | 
			
		|||
                            # Probably the child has exited
 | 
			
		||||
                            pass
 | 
			
		||||
                else:
 | 
			
		||||
                    ready_fds = select([stdin_fd], [], [], 1)
 | 
			
		||||
                    ready_fds = select.select([stdin_fd], [], [], 1)
 | 
			
		||||
 | 
			
		||||
                    if stdin_fd in ready_fds[0]:
 | 
			
		||||
                        try:
 | 
			
		||||
| 
						 | 
				
			
			@ -598,7 +597,7 @@ class Metasploit:
 | 
			
		|||
                    else:
 | 
			
		||||
                        proc.kill()
 | 
			
		||||
 | 
			
		||||
            except (EOFError, IOError):
 | 
			
		||||
            except (EOFError, IOError, select.error):
 | 
			
		||||
                return proc.returncode
 | 
			
		||||
 | 
			
		||||
    def createMsfShellcode(self, exitfunc, format, extra, encode):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user