⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
local
/
apache
/
modsecurity-owasp-old
/
lua
/
View File Name :
profile_page_scripts.lua
#!/opt/local/bin/lua function main() local response_body = m.getvar("RESPONSE_BODY", "none"); if response_body ~= "" then local _, nscripts = string.gsub(response_body, "<script", ""); local _, niframes = string.gsub(response_body, "<iframe", ""); local _, nlinks = string.gsub(response_body, "a href", ""); local _, nimages = string.gsub(response_body, "<img", ""); if nscripts == nil then nscripts = 0 end if niframes == nil then niframes = 0 end if nlinks == nil then nlinks = 0 end if nimages == nil then nimages = 0 end m.log(3, "niframes[" .. niframes .. "]"); m.setvar("tx.niframes", niframes); m.log(3, "nscripts[" .. nscripts .. "]"); m.setvar("tx.nscripts", nscripts); m.log(3, "nlinks[" .. nlinks .. "]"); m.setvar("tx.nlinks", nlinks); m.log(3, "nimages[" .. nimages .. "]"); m.setvar("tx.nimages", nimages); return nil; end return nil; end