Skip to content

Commit

Permalink
Add new data for nightly V0.8.5402, and permit subTypes as parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattSL authored Nov 6, 2024
1 parent 5c6ab61 commit c1ed342
Show file tree
Hide file tree
Showing 7 changed files with 214 additions and 10 deletions.
98 changes: 97 additions & 1 deletion _data/arguments.json
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,30 @@
"name": "optArgs",
"optional": true
}
],
"payload": [
{
"type": "String",
"name": "memoryZone",
"optional": false
},
{
"type": "String",
"name": "path",
"optional": false
}
],
"debug_tools": [
{
"name": "user",
"type": "String",
"optional": false
},
{
"name": "password",
"type": "String",
"optional": false
}
]
},
"Metaxploit": {
Expand Down Expand Up @@ -744,7 +768,13 @@
"optional": false
}
],
"path": [],
"path": [
{
"type": "Number",
"name": "followSymlink",
"optional": true
}
],
"parent": [],
"name": [],
"get_content": [],
Expand Down Expand Up @@ -794,8 +824,74 @@
}
],
"size": [],
"symlink": [
{
"type": "String",
"name": "path",
"optional": false
},
{
"type": "String",
"name": "file_new_name",
"optional": false
}
],
"is_symlink": [],
"meta_info": []
},
"TrafficNet": {
"camera_link_system": [],
"locate_vehicle": [
{
"type": "String",
"name": "licensePlate",
"optional": false
}
],
"next_camera": [],
"prev_camera": [],
"traffic_light_config": []
},
"SmartAppliance": {
"model": [],
"override_settings": [
{
"type": "Number",
"name": "power",
"optional": false
},
{
"type": "Number",
"name": "temperature",
"optional": false
}
],
"set_alarm": [
{
"type": "Number",
"name": "enable",
"optional": false
}
]
},
"DebugLibrary": {
"apply_patch": [
{
"name": "path",
"type": "String",
"optional": false
}
],
"scan": [],
"unit_testing": [
{
"name": "errorLines",
"type": "List",
"subType": "Number",
"optional": false
}
]
},
"Computer": {
"get_name": [],
"get_ports": [],
Expand Down
25 changes: 23 additions & 2 deletions _data/descriptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,14 @@
"MetaLib": {
"lib_name": "Returns the name of the library.",
"version": "Returns the version of the library.",
"overflow": "Exploits the indicated vulnerability through the buffer overflow method.\nThe object returned can be of various types or even not return anything, so it is advisable to use the typeof method with the object returned.\nDepending on the result, it may be necessary to pass extra arguments so that the exploit runs correctly, for example in the case of a password change."
"overflow": "Exploits the indicated vulnerability through the buffer overflow method.\nThe object returned can be of various types or even not return anything, so it is advisable to use the typeof method with the object returned.\nDepending on the result, it may be necessary to pass extra arguments so that the exploit runs correctly, for example in the case of a password change.",
"debug_tools": "Returns the library in debug mode, as an object of type LibraryDebug. To obtain it, it is necessary to provide a valid username and password of a Neurobox engineer.",
"payload": "Returns a list with a single partial object of type Computer if potential zero-day vulnerabilities are found in the specified memory zone. If a file path is provided, its associated partial object of type File will also be added to the list. Additionally, if this file is a library, its metalib object will also be added to the returned list."
},
"DebugLibrary": {
"apply_patch": "Applies the patch with the corrected code to the text file specified in the path. Returns true if the patch has been applied successfully, false otherwise.",
"scan": "Scans the library in debug mode to find possible code errors that could lead to a vulnerability. If any potential issues are found, the associated code snippet is printed.",
"unit_testing": "Automated tests are conducted on the specified lines of code. If potential vulnerabilities are found due to existing errors in these lines, the partial objects that would be obtained by exploiting it are printed, as well as the memory zone affected by the new vulnerability and its details."
},
"Metaxploit": {
"load": "Load the library in memory and return it as a metalib type if the process was successful.",
Expand Down Expand Up @@ -141,7 +148,7 @@
"copy": "Copy the file to the specified path.\n\nOn success, returns 1 and the terminal outputs the copied file dialogue. On failure, returns either an error (string) such as permission denied or null (if File object not valid).",
"move": "Move the file to the specified path.\n\nOn success, returns 1. On failure, returns either an error (string) such as permission denied or null (if File object not valid).",
"rename": "Rename the file with the name provided.\n\nReturns a string (empty on success, or with an error on failure)",
"path": "Returns a string with the absolute path of the file.",
"path": "Returns a string with the absolute path of the file. If followSymlink is true, it will print the path of the symlink destination.",
"parent": "Returns the folder that contains this file or null if the initial object is /.",
"name": "Returns a string with the name of the file.",
"get_content": "Returns a string with the contents of the text file.",
Expand All @@ -158,8 +165,22 @@
"group": "Returns a string with the name of the group to which this file belongs.",
"set_group": "Apply a group to this file. By default, the group does not apply recursively. To apply the group recursively, the optional parameter must be 1.\n\nReturns a string (empty on success, or with an error on failure)",
"size": "Returns a string with the size of the file in bytes.",
"symlink": "Creates a symbolic link at the specified path.",
"is_symlink": "Returns true/false if the file object is a symbolic link.",
"meta_info": "Presumedly returns metadata information about a file.\n\n**This requires moderator permissions on Multiplayer, and is unavailable in Singleplayer.*"
},
"TrafficNet": {
"camera_link_system": "Opens a traffic camera system window with controls to switch between cameras.",
"locate_vehicle": "Searches traffic cameras to see if a vehicle with the specified license plate can be identified. If true, the viewer will switch to the camera. If not, a string indicating an error is returned.",
"next_camera": "Switches to the next camera.",
"prev_camera": "Switches to the previous camera.",
"traffic_light_config": "[Work in progress] - Wild speculation, but maybe this will let you kill NPCs, or at least delay them from reaching work?"
},
"SmartAppliance": {
"model": "Returns the model of the appliance as a string.",
"override_settings": "Overrides the power and temp. values of the appliance. Returns true if successful, otherwise returning a string as an error.",
"set_alarm": "Activates or deactivates the sound alarm that indicates if there is any malfunction in the appliance."
},
"Computer": {
"get_name": "Get the hostname of the computer.",
"local_ip": "Returns a string with the computer's local ip address.",
Expand Down
25 changes: 23 additions & 2 deletions _data/functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@
"MetaLib": [
"lib_name",
"version",
"overflow"
"overflow",
"payload",
"debug_tools"
],
"Metaxploit": [
"load",
Expand Down Expand Up @@ -160,7 +162,26 @@
"group",
"set_group",
"size",
"meta_info"
"meta_info",
"symlink",
"is_symlink"
],
"TrafficNet": [
"camera_link_system",
"locate_vehicle",
"next_camera",
"prev_camera",
"traffic_light_config"
],
"DebugLibrary": [
"apply_patch",
"scan",
"unit_testing"
],
"SmartAppliance": [
"model",
"override_settings",
"set_alarm"
],
"Computer": [
"get_name",
Expand Down
18 changes: 17 additions & 1 deletion _data/nightly.json
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
[]
[
"File.symlink",
"File.is_symlink",
"MetaLib.payload",
"MetaLib.debug_tools",
"DebugLibrary.scan",
"DebugLibrary.apply_patch",
"DebugLibrary.unit_testing",
"SmartAppliance.model",
"SmartAppliance.override_settings",
"SmartAppliance.set_alarm",
"TrafficNet.camera_link_system",
"TrafficNet.locate_vehicle",
"TrafficNet.next_camera",
"TrafficNet.prev_camera",
"TrafficNet.traffic_light_config"
]
45 changes: 42 additions & 3 deletions _data/returns.json
Original file line number Diff line number Diff line change
Expand Up @@ -547,9 +547,9 @@
"rshell_client": [
{
"type": "Number"
},
{
"type": "String"
},
{
"type": "String"
}
],
"rshell_server": [
Expand Down Expand Up @@ -823,6 +823,45 @@
{ "type": "Any" }
]
},
"TrafficNet": {
"camera_link_system": [
{ "type": "Number" },
{ "type": "String" }
],
"locate_vehicle": [
{ "type": "Number" },
{ "type": "String" }
],
"next_camera": [
{ "type": "Number" },
{ "type": "String" }
],
"prev_camera": [
{ "type": "Number" },
{ "type": "String" }
],
"traffic_light_config": [
{ "type": "String" }
]
},
"SmartAppliance": {
"model": [
{ "type": "String" }
],
"override_settings": [
{ "type": "Number" },
{ "type": "String" }
],
"set_alarm": [
{ "type": "Number" },
{ "type": "String" }
]
},
"DebugLibrary": {
"apply_patch": [{ "type": "String" }],
"scan": [{ "type": "String" }],
"unit_testing": [{ "type": "String" }]
},
"Computer": {
"get_name": [
{
Expand Down
5 changes: 4 additions & 1 deletion _data/typelist.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@
"Wallet",
"SubWallet",
"Coin",
"Service"
"Service",
"TrafficNet",
"DebugLibrary",
"SmartAppliance"
]
8 changes: 8 additions & 0 deletions codedocs.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,17 @@ permalink: /api
{% capture argdata %}
{% for a in args %}
{% if a.optional %}
{% if a.subType %}
?{{ a.name }}:{{ a.type }}[{{ a.subType }}],
{% else %}
?{{ a.name }}:{{ a.type }},
{% endif %}
{% else %}
{% if a.subType %}
{{ a.name }}:{{ a.type }}[{{ a.subType }}],
{% else %}
{{ a.name }}:{{ a.type }},
{% endif %}
{% endif %}
{% endfor %}
{% endcapture %}
Expand Down

0 comments on commit c1ed342

Please sign in to comment.