MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / init

Function init

lib/core/option.py:2901–2964  ·  view source on GitHub ↗

Set attributes into both configuration and knowledge base singletons based upon command line and configuration file options.

()

Source from the content-addressed store, hash-verified

2899 _mergeOptions(inputOptions, overrideOptions)
2900
2901def init():
2902 """
2903 Set attributes into both configuration and knowledge base singletons
2904 based upon command line and configuration file options.
2905 """
2906
2907 _useWizardInterface()
2908 setVerbosity()
2909 _saveConfig()
2910 _setRequestFromFile()
2911 _cleanupOptions()
2912 _cleanupEnvironment()
2913 _purge()
2914 _checkDependencies()
2915 _createHomeDirectories()
2916 _createTemporaryDirectory()
2917 _basicOptionValidation()
2918 _setProxyList()
2919 _setTorProxySettings()
2920 _setDNSServer()
2921 _adjustLoggingFormatter()
2922 _setMultipleTargets()
2923 _listTamperingFunctions()
2924 _setTamperingFunctions()
2925 _setPreprocessFunctions()
2926 _setPostprocessFunctions()
2927 _setTrafficOutputFP()
2928 _setupHTTPCollector()
2929 _setHttpOptions()
2930
2931 parseTargetDirect()
2932
2933 if any((conf.url, conf.logFile, conf.bulkFile, conf.requestFile, conf.googleDork, conf.stdinPipe)):
2934 _setHostname()
2935 _setHTTPTimeout()
2936 _setHTTPExtraHeaders()
2937 _setHTTPCookies()
2938 _setHTTPReferer()
2939 _setHTTPHost()
2940 _setHTTPUserAgent()
2941 _setHTTPAuthentication()
2942 _setHTTPHandlers()
2943 _setDNSCache()
2944 _setSocketPreConnect()
2945 _setSafeVisit()
2946 _doSearch()
2947 _setStdinPipeTargets()
2948 _setBulkMultipleTargets()
2949 _checkTor()
2950 _setCrawler()
2951 _findPageForms()
2952 _setDBMS()
2953 _setTechnique()
2954
2955 _setThreads()
2956 _setOS()
2957 _setWriteFile()
2958 _setMetasploit()

Callers 1

mainFunction · 0.90

Calls 15

parseTargetDirectFunction · 0.90
loadBoundariesFunction · 0.90
loadPayloadsFunction · 0.90
updateFunction · 0.90
_useWizardInterfaceFunction · 0.85
_saveConfigFunction · 0.85
_setRequestFromFileFunction · 0.85
_cleanupOptionsFunction · 0.85
_cleanupEnvironmentFunction · 0.85
_purgeFunction · 0.85
_checkDependenciesFunction · 0.85
_createHomeDirectoriesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…