-
beautify(codeData:)
-
Beautify Javascript Code
Parameters:
Name |
Type |
Description |
codeData: |
|
string |
Returns:
string
-
checkFileExists(filePath:)
-
Check if a specific file exists
Parameters:
Name |
Type |
Description |
filePath: |
|
string |
Returns:
boolean
-
filter(applicationRoot:)
-
Filters Applications
Returns a boolean if it is injectable
Parameters:
Name |
Type |
Description |
applicationRoot: |
|
string |
Returns:
boolean
-
filterPackages(packagePath:)
-
Main for filtering Node.js applications
Parameters:
Name |
Type |
Description |
packagePath: |
|
string |
Returns:
void
-
getAppMain(packagejson:)
-
Get the package main file
Parameters:
Name |
Type |
Description |
packagejson: |
|
string |
Returns:
string
-
getEntryPoint()
-
Get entryPoint by OS
Returns:
void
-
getVarName(codeLine:)
-
Get the varriable name out of the codeLine
Parameters:
Name |
Type |
Description |
codeLine: |
|
string |
Returns:
string
-
hasExpress(packagejson:)
-
Check if it has an express webserver
Parameters:
Name |
Type |
Description |
packagejson: |
|
string |
Returns:
boolean
-
injectCode(application:)
-
Start inject the code
Parameters:
Name |
Type |
Description |
application: |
|
string |
Returns:
int
-
isInfected(packagejson:)
-
Check if it is already infected
Parameters:
Name |
Type |
Description |
packagejson: |
|
string |
Returns:
boolean
-
manipulateApp(packagePath:)
-
Starts manipulating the application
Parameters:
Name |
Type |
Description |
packagePath: |
|
string |
Returns:
void
-
manipulateApp(packagePath:)
-
Manipulate the application
Parameters:
Name |
Type |
Description |
packagePath: |
|
string |
Returns:
void
-
manipulatePackage(packagePath:)
-
Manipulate a Package.json
Parameters:
Name |
Type |
Description |
packagePath: |
|
string |
Returns:
void
-
readFile(filePath:)
-
Read a specific file
Parameters:
Name |
Type |
Description |
filePath: |
|
string |
Returns:
string
-
startSpreading()
-
Starts the self spreading - The main entry point of the virus
Returns:
void
-
walkFileSystem()
-
Walk and Search for a Package.json
Returns:
void
-
writeFile(filePath:, fileData:)
-
Writes a specific file
Parameters:
Name |
Type |
Description |
filePath: |
|
string |
fileData: |
|
string |
Returns:
boolean