Skip to content

Commit 47894f2

Browse files
committed
Moving Functions to seprate libs
1 parent facddaa commit 47894f2

File tree

11 files changed

+3
-417
lines changed

11 files changed

+3
-417
lines changed

src/cli/input/load_scripts.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::lua::{
22
model::LuaRunTime,
33
runtime::{
4-
encode_ext::EncodeEXT, http_ext::HTTPEXT, payloads_ext::PayloadsEXT, utils_ext::UtilsEXT,
4+
encode_ext::EncodeEXT, http_ext::HTTPEXT, utils_ext::UtilsEXT,
55
},
66
};
77
use crate::{filename_to_string, show_msg, CliErrors, MessageLevel};
@@ -91,7 +91,6 @@ pub fn valid_scripts(
9191
lua_eng.add_printfunc();
9292
lua_eng.add_matchingfunc();
9393
lua_eng.add_threadsfunc();
94-
lua_eng.add_payloadsfuncs();
9594
if test_target_host.is_some() {
9695
lua_eng.add_httpfuncs(None);
9796
lua_eng

src/lua/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ pub mod model;
22
pub mod network;
33
pub mod output;
44
pub mod parsing;
5-
pub mod payloads;
65
pub mod run;
76
pub mod runtime;
87
pub mod threads;

src/lua/parsing/html.rs

-102
This file was deleted.

src/lua/parsing/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
pub mod files;
2-
pub mod html;
32
pub mod text;
43
pub mod url;

src/lua/payloads/mod.rs

-1
This file was deleted.

src/lua/payloads/xss.rs

-190
This file was deleted.

src/lua/payloads/xss/xsspayloads.rs

-52
This file was deleted.

src/lua/run.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::lua::runtime::{
2-
encode_ext::EncodeEXT, http_ext::HTTPEXT, payloads_ext::PayloadsEXT, utils_ext::UtilsEXT,
2+
encode_ext::EncodeEXT, http_ext::HTTPEXT, utils_ext::UtilsEXT,
33
};
44
use crate::{
55
cli::bar::BAR,
@@ -42,7 +42,6 @@ impl LuaLoader {
4242
lua_eng.add_printfunc();
4343
lua_eng.add_matchingfunc();
4444
lua_eng.add_threadsfunc();
45-
lua_eng.add_payloadsfuncs();
4645
lua.globals()
4746
.set(
4847
"ERR_STRING",

src/lua/runtime/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
pub mod encode_ext;
22
pub mod http_ext;
3-
pub mod payloads_ext;
43
pub mod utils_ext;

0 commit comments

Comments
 (0)