Raider

class Raider(name=None, flags=0, args=None)[source]

Main class used as the point of entry.

The Raider class should be used to access everything else inside Raider. For now it’s still not doing much, but for the future this is where all of the features available to the end user should be.

project

An Project object with the currently active project.

config

A Config object containing all of the necessary settings.

user

A User object containing the active user of the active project.

functions

A Functions object containing the defined functions of the active project.

SESSION_LOADED = 1
__init__(name=None, flags=0, args=None)[source]

Initializes the Raider object.

Initializes the main entry point for Raider. If the name of the project is supplied, this project will be used, otherwise the last used project will be chosen.

Parameters
  • name (Optional[str]) – A string with the name of the project.

  • flags (int) – An integer with the flags. Only SESSION_LOADED is supported now. It indicates the authentication was not performed from the start, but loaded from a previously saved session file, which means the plugins should get their value from userdata.

run(flows, test=False)[source]
load_session()[source]

Loads saved session from _userdata.hy.

Return type

None

save_session()[source]

Saves session to _userdata.hy.

Return type

None

fuzz(flow_name, fuzzing_point)[source]

Fuzz a function with an authenticated user.

Given a function name, a starting point for fuzzing, and a function to generate the fuzzing strings, run the attack.

Parameters
  • flow_name (str) – The name of the Flow containing the Request which will be fuzzed.

  • fuzzing_point (str) – The name given to the Plugin inside Request which will be fuzzed.

Return type

Fuzz

fix_function_plugins(function)[source]

Given a function name, prepare its Flow to be fuzzed.

For each plugin acting as an input for the defined function, change its flags and function so it uses the previously extracted data instead of extracting it again.

Return type

None

property project: Project
Return type

Project

property pconfig
property flowstore: FlowStore

Returns the Authentication object

Return type

FlowStore

property user: User

Returns the User object

Return type

User

property session_loaded: bool

Returns True if the SESSION_LOADED flag is set.

Return type

bool