Documentation ¶
Index ¶
- Constants
- func CopyDirRemote(sftpConn *sftp.Client, localDirname string, remoteDirname string) error
- func CreateRemoteConnection(host string) (*t.SSHConn, error)
- func StoreResultsLocalFS(r *t.FinalMIDAResult, outpath string) error
- func StoreResultsSSH(r *t.FinalMIDAResult, activeConn *t.SSHConn, remotePath string) error
- type MongoConn
- func (conn *MongoConn) ReserveObjIDs(num int64) (start int64, end int64, err error)
- func (conn *MongoConn) StoreJSTrace(r *t.FinalMIDAResult) error
- func (conn *MongoConn) StoreMetadata(r *t.FinalMIDAResult) (int64, error)
- func (conn *MongoConn) StoreResources(r *t.FinalMIDAResult) (*[]int64, error)
- func (conn *MongoConn) StoreWebSocketData(r *t.FinalMIDAResult) (*[]int64, error)
- func (conn *MongoConn) TeardownConnection() error
Constants ¶
View Source
const ( // Output Parameters DefaultOutputPath = "results" DefaultFileSubdir = "files" DefaultScriptSubdir = "scripts" DefaultCoverageSubdir = "coverage" DefaultCrawlMetadataFile = "metadata.json" DefaultResourceMetadataFile = "resource_metadata.json" DefaultScriptMetadataFile = "script_metadata.json" DefaultJSTracePath = "js_trace.json" DefaultResourceTreePath = "resource_tree.json" DefaultWebSocketTrafficFile = "websocket_data.json" DefaultBrowserLogFileName = "browser.log" DefaultNetworkStraceFileName = "network.strace" MongoStorageTimeoutSeconds = 90 MongoStorageJSBufferLen = 10000 MongoStorageResourceBufferLen = 100 TempDir = ".tmp" MaxInt64 = 9223372036854775807 )
Variables ¶
This section is empty.
Functions ¶
func CopyDirRemote ¶
func StoreResultsLocalFS ¶
func StoreResultsLocalFS(r *t.FinalMIDAResult, outpath string) error
Given a valid FinalMIDAResult, stores it according to the output path specified in the sanitized task within the result
func StoreResultsSSH ¶
Stores a result directory (via SSH/SFTP) to a remote host, given an already active SSH connection. Ensure that you lock the relevant SSH connection Before calling this.
Types ¶
type MongoConn ¶
func CreateMongoDBConnection ¶
func (*MongoConn) ReserveObjIDs ¶
Reserves a set of object IDs in the MongoDB database. Start and end are inclusive.
func (*MongoConn) StoreJSTrace ¶
func (conn *MongoConn) StoreJSTrace(r *t.FinalMIDAResult) error
func (*MongoConn) StoreMetadata ¶
func (conn *MongoConn) StoreMetadata(r *t.FinalMIDAResult) (int64, error)
func (*MongoConn) StoreResources ¶
func (conn *MongoConn) StoreResources(r *t.FinalMIDAResult) (*[]int64, error)
func (*MongoConn) StoreWebSocketData ¶
func (conn *MongoConn) StoreWebSocketData(r *t.FinalMIDAResult) (*[]int64, error)
func (*MongoConn) TeardownConnection ¶
Click to show internal directories.
Click to hide internal directories.