I have the following code in a plugin:
send(socket:soc,data:http_get(item:"/",port:port));
banner=recv(socket:soc,length:1024);
device_banner="Widget 5000";
The data/banner is several lines. If I envoke:
if(ereg(pattern:device_banner,string:banner))
"if" will be true because "device_banner" is a subset of "banner".
However, I would like "device_banner" to contain the entire known banner
of the Widget 5000 which is a multi-line string. I've tried several
variations of \r\n, but to no avail...
How can I have the following be assigned to the variable "device_banner"?
# Begin banner.
Widget 5000
Version 1.2.3
Bla bla bla
# End banner
Much thanks.
--
George
send(socket:soc,data:http_get(item:"/",port:port));
banner=recv(socket:soc,length:1024);
device_banner="Widget 5000";
The data/banner is several lines. If I envoke:
if(ereg(pattern:device_banner,string:banner))
"if" will be true because "device_banner" is a subset of "banner".
However, I would like "device_banner" to contain the entire known banner
of the Widget 5000 which is a multi-line string. I've tried several
variations of \r\n, but to no avail...
How can I have the following be assigned to the variable "device_banner"?
# Begin banner.
Widget 5000
Version 1.2.3
Bla bla bla
# End banner
Much thanks.
--
George