MCPcopy Create free account

hub / github.com/carlosgprado/NaFl / functions

Functions110 in github.com/carlosgprado/NaFl

↓ 30 callersMethodgen_long_strings
Given a sequence, generate a number of selectively chosen strings lengths of the given sequence. NOTE: argument max_len sets
NaFlCore/helpers/mutator.py:465
↓ 11 callersMethodget
(self)
NaFlCore/server/website.py:112
↓ 2 callersFunctionDisplayError
NaFlCore/tests/TestProgramToFuzz.cpp:132
↓ 2 callersFunctionload_plugin
(plugin)
NaFlCore/helpers/plugin_loader.py:45
↓ 1 callersFunctionH
Implementation of Shannon's Entropy Ero Carrera is the man
NaFlCore/helpers/utils.py:70
↓ 1 callersFunctionUsage
Help message
PinTool/MyPinTool.cpp:281
↓ 1 callersMethod_connect_to_server
(self)
NaFlCore/helpers/communication.py:27
↓ 1 callersMethod_gen_mutation
Generates mutated contents from a sample file
NaFlCore/helpers/mutator.py:50
↓ 1 callersMethod_get_input_filename
Gets a filename from the Mutation Queue Moves the Queue elements around (from mutation to processed one)
NaFlCore/helpers/mutator.py:33
↓ 1 callersMethod_get_platform_info
Information regarding the computer where the fuzzer is running
NaFlCore/helpers/communication.py:104
↓ 1 callersMethod_reconnect
Try to connect back to the server
NaFlCore/helpers/communication.py:85
↓ 1 callersMethodadd_crash
Convenience wrapper
NaFlCore/helpers/communication.py:53
↓ 1 callersFunctionanalyze_crash
This is called with the command line (including the filename) which caused the crash before. It is a late analysis routine which sorts th
NaFlCore/helpers/crash_analysis.py:107
↓ 1 callersMethodapply_post_processing
Applies the selected plugins in *reverse* order to recreate the original file format :param mutated_buffer: eeeh... the mutat
NaFlCore/helpers/mutator.py:154
↓ 1 callersMethodapply_pre_processing
Applies the selected plugins in order to extract the raw data to be mutated :param file_contents: eeeh... the input file cont
NaFlCore/helpers/mutator.py:139
↓ 1 callersMethodbanner
(self)
NaFlCore/server/CrashDBMaintenance.py:22
↓ 1 callersFunctionboom
NaFlCore/tests/TestProgramToFuzz.cpp:35
↓ 1 callersMethodconnect_to_db
Open a connection to the SQLite DB
NaFlCore/server/CrashDBMaintenance.py:112
↓ 1 callersMethoddelete_current_test_case
Not interesting mutation. Kill it with fire.
NaFlCore/helpers/mutator.py:89
↓ 1 callersMethodempty_db
Resets the database to its initial state (empty, in this case)
NaFlCore/server/CrashDBMaintenance.py:131
↓ 1 callersFunctionfuzzing_loop
Fuzzing Loop. This loops (maybe indefinitely) creating several fuzzing processes
NaFlCore/NaFlCore.py:140
↓ 1 callersMethodgenerate_table
This generates HTML code representing a table
NaFlCore/server/website.py:33
↓ 1 callersMethodgenerate_website
(self)
NaFlCore/server/website.py:88
↓ 1 callersMethodget_common_strings
Produce generic (independent from input) strings. These are known to exercise some corner cases.
NaFlCore/helpers/mutator.py:379
↓ 1 callersFunctionget_plugins
()
NaFlCore/helpers/plugin_loader.py:18
↓ 1 callersFunctionget_random_filename
Gets a random filename from inside the ZipFile object, with the selected file extension :return: arbitrary filename of selected type (ext
NaFlCore/plugins/unzip/__init__.py:77
↓ 1 callersMethodget_token_mutation
This is particularly effective for delimiters but it would be useful for other tokens :return: random element of list of toke
NaFlCore/helpers/mutator.py:314
↓ 1 callersFunctioninitialize_logging
Printing to console is dirty
NaFlCore/NaFlCore.py:40
↓ 1 callersMethodinitialize_plugins
Load the selected plugins and makes them available to Cthulhu :return:
NaFlCore/helpers/mutator.py:129
↓ 1 callersFunctionis_interesting_input
Compare the bitmap corresponding to the current trace with the history of taken paths. NOTE: the return values are different than the one
NaFlCore/NaFlCore.py:83
↓ 1 callersFunctionmain
This creates a shared memory region NOT backed up by a file
NaFlCore/NaFlCore.py:204
↓ 1 callersFunctionmain
()
NaFlCore/server/website.py:117
↓ 1 callersFunctionparse_config_file
Initializes fuzzing parameters with information stored in a config file
NaFlCore/NaFlCore.py:61
↓ 1 callersFunctionrandom_alphabetical_string
Filenames are usually rejected if they contain funky characters, blocking execution
NaFlCore/helpers/utils.py:20
↓ 1 callersFunctionrandom_string
Returns a random string, UTF-8 encoded
NaFlCore/helpers/utils.py:38
↓ 1 callersMethodretrieve_crash_information
Read the database
NaFlCore/server/website.py:24
↓ 1 callersMethodretrieve_crashes
Gets all crash information :return: iterator of tuples
NaFlCore/server/database.py:78
↓ 1 callersFunctionrun_under_pin
Runs the given file under PIN and gets the bitmap representing execution :returns: this bitmap
NaFlCore/NaFlCore.py:120
↓ 1 callersFunctions2l
PinTool/MyPinTool.cpp:48
↓ 1 callersFunctionsetupIPC
PinTool/MyPinTool.cpp:56
↓ 1 callersFunctionwithinInterestingExecutable
PinTool/MyPinTool.cpp:108
↓ 1 callersMethodwrite_crash
Process data to a format suitable for storage in the SQLite database
NaFlCore/server/database.py:49
↓ 1 callersMethodwrite_test_case
It creates the test case contents :return: Tuple (original, mutated) filenames or None
NaFlCore/helpers/mutator.py:72
↓ 1 callersMethodyield_mutation
This is the meat and potatoes!!!1! Generators are cool Itertools are better!
NaFlCore/helpers/mutator.py:170
FunctionExceptionCallback
PinTool/MyPinTool.cpp:220
FunctionFileIOCompletionRoutine
NaFlCore/tests/TestProgramToFuzz.cpp:23
FunctionFini
Finish and cleanup functions
PinTool/MyPinTool.cpp:92
FunctionLogConditionalJmp
PinTool/MyPinTool.cpp:165
FunctionTimerThread
PinTool/MyPinTool.cpp:247
FunctionTrace
This identifies conditional jumps (don't care which kind) NOTE: These are all instrumentation functions (JIT), they just point to the analysis ones
PinTool/MyPinTool.cpp:180
Method__cmp__
(self, other)
NaFlCore/helpers/queue.py:25
Method__init__
:return:
NaFlCore/helpers/config.py:12
Method__init__
(self, debug = False)
NaFlCore/helpers/mutator.py:22
Method__init__
(self, debug = False, mode = 'sequential')
NaFlCore/helpers/mutator.py:108
Method__init__
(self)
NaFlCore/helpers/communication.py:19
Method__init__
(self, priority, filename, id, bitmap)
NaFlCore/helpers/queue.py:19
Method__init__
Simplicity is better than complexity
NaFlCore/server/database.py:15
Method__init__
This is a poor man's dashboard :)
NaFlCore/server/website.py:17
Method__init__
(self, sqlite_file)
NaFlCore/server/CrashDBMaintenance.py:104
Method__init__
(self)
NaFlCore/server/xmlrpc-server.py:29
Function_tmain
NaFlCore/tests/TestProgramToFuzz.cpp:64
Functionappend_serial
Uniquely name the files test.123.txt
NaFlCore/helpers/fileops.py:19
Functioncleanup_old_mutations
Existing mutation.xxx files from old runs could be a problem. Erase them before.
NaFlCore/helpers/fileops.py:70
Methodcomplete_greet
This is used for custom autocompletions Ex: the arguments are read from a db, etc.
NaFlCore/server/CrashDBMaintenance.py:64
Functioncopy_all_files
It does what it says :)
NaFlCore/helpers/fileops.py:31
Functioncrash_event_handler
This implements the whole logic. The code below triggered by an access violation is responsible for storing / doing whatever with the cra
NaFlCore/helpers/crash_analysis.py:25
Methoddelete_block
Exactly what it says :) Randomly selects a block and deletes it
NaFlCore/helpers/mutator.py:270
Methoddo_echo
Print the input, replacing '$out' with the output of the last shell command
NaFlCore/server/CrashDBMaintenance.py:46
Methoddo_greet
Greet the person
NaFlCore/server/CrashDBMaintenance.py:53
Methoddo_prompt
Change the interactive prompt
NaFlCore/server/CrashDBMaintenance.py:28
Methoddo_quit
Quits the application, obviously
NaFlCore/server/CrashDBMaintenance.py:96
Methoddo_resetdb
Clears the DB
NaFlCore/server/CrashDBMaintenance.py:76
Methoddo_shell
Run a shell command
NaFlCore/server/CrashDBMaintenance.py:37
Functionentropy_scan
Implemented as a generator. Did I mention Ero is the man?
NaFlCore/helpers/utils.py:86
Functiongen_random_filename
FIXME: things like mutation, crash, etc. dirs should be read from a config file and be available globally
NaFlCore/helpers/fileops.py:89
Functionget_all_filenames
Returns a list of absolute filename + path within the given directory
NaFlCore/helpers/fileops.py:62
Functionget_base64_contents
Exactly that :param file: filename + path :return: None or Base64 string
NaFlCore/helpers/fileops.py:120
Functionget_queue_element_by_id
The function name is its own documentation :)
NaFlCore/helpers/queue.py:29
Functionget_random_filename
It returns a random filename from a directory
NaFlCore/helpers/fileops.py:50
Functionget_size_uint32
Let's do things right. Calculate the size of an unsigned long for this architecture. Or 4 :)
NaFlCore/helpers/utils.py:96
Functionhit_bin
Given a hit number, return the corresponding bin Hit bins: {1, 2, 3, 4-7, 8-15, 16-31, 32-127, 128+}
NaFlCore/helpers/utils.py:111
FunctionimageLoad_cb
This is called every time a MODULE (dll, etc.) is LOADED Analysis function (execution time)
PinTool/MyPinTool.cpp:119
Methodlift_bytes
Increases byte values from a random segment by a random value
NaFlCore/helpers/mutator.py:207
Functionmain
Main function - initialize and set instrumentation callbacks */
PinTool/MyPinTool.cpp:295
Methodmutate_token
Mutates a token (subset from the buffer) and substitutes it with its mutation
NaFlCore/helpers/mutator.py:247
Functionpost
This example plugin does not really process the data. It just prints some debug message :param mutated_data: data mutated by Cthulhu
NaFlCore/plugins/example/__init__.py:27
Functionpost
This is rather tricky since it is not possible to delete or update a file within a Zip file in Python It is necessary to create a new Zip
NaFlCore/plugins/unzip/__init__.py:47
Methodpostloop
Executed once after the Cmd prompt
NaFlCore/server/CrashDBMaintenance.py:89
Functionpre
This example plugin does not really process the data. It just prints some debug message :param raw_data: file contents :return: unmod
NaFlCore/plugins/example/__init__.py:15
Functionpre
This plugin extracts the contents of a random file within the original Zip file :param raw_data: file contents :return: Extracted dat
NaFlCore/plugins/unzip/__init__.py:26
Methodpreloop
Executed once before the Cmd prompt
NaFlCore/server/CrashDBMaintenance.py:82
Functionrandom_byte_string
Returns a string of random bytes (excluding zero)
NaFlCore/helpers/utils.py:48
Functionrandom_hexstring
Returns a random hex string
NaFlCore/helpers/utils.py:61
Functionrandom_int
Convenience function. Returns an integer
NaFlCore/helpers/utils.py:56
Functionrandom_url
Returns a random URL
NaFlCore/helpers/utils.py:10
Functionrename_file
Just a convenience wrapper
NaFlCore/helpers/fileops.py:82
Functionrestore_saved_bitmap
Restore the saved bitmap from a pickle dump to a file (or returns None)
NaFlCore/helpers/fileops.py:102
Functionsave_crash_file
Convenience wrapper
NaFlCore/helpers/fileops.py:41
Methodsubstitute_string
Simple substitution with *standard tokens* This is equivalent to smash the original bytes
NaFlCore/helpers/mutator.py:226
Methodswap_blocks
Just swapping stuff
NaFlCore/helpers/mutator.py:286
next →1–100 of 110, ranked by callers