Error I Cannot Load The Test Engine Webinject.pl
Services Web Services use HTTP as the the application layer protocol to exchange messages over the network. WebInject can be used to send these messages (usually XML payloads) and verify/validate the response messages returned by your service. This enables you to functionally test your Web Service, and allows you to set up a transaction monitor for service-level monitoring of response times. It is useful for testing web service protocols such as SOAP or XML-RPC. Example: The Google Web API (SOAP/XML Web Service) Google provides a public SOAP/XML API to their Web Services. They provide a developer's kit with samples and instructions on how to use the service. We will go through an example of how WebInject could be used to test and monitor this Web Service. (see: http://www.google.com/apis for information about the Google Web API) The following example shows an XML payload which contains a SOAP envelope we will send to the Google Web API. This envelope will instruct the server to use Google's search engine to query for the phrase "webinject automated tool". For this example, we will save this in a file named 'doGoogleSearch.xml'. webinject automated tool
Blog Nagios Plugins Aside from the normal usage as an individual test harness, WebInject can run in a mode that allows it to be used as a plugin for Nagios. Nagios is an open source host, service, and network monitoring program. It is very popular and used by many big companies and organizations for enterprise monitoring. Nagios was originally designed to run under Linux, but should run on other Unix variants as well. Nagios is a very powerful, very flexible monitoring solution, with many plugins available to do almost anything, and with a large number of options http://www.webinject.org/webservices.html for notification and service monitoring. Nagios is based on a central server that runs external commands or plugins to test distributed hosts and services. For information on Nagios, visit http://www.nagios.org Why Another HTTP Plugin for Nagios? There is an existing plugin for Nagios named 'check_http' that is installed along with the official set of Nagios plugins. The check_http plugin tests the HTTP http://www.webinject.org/plugin.html service on a specified host and port. It has a variety of options and is useful for cursory monitoring of an HTTP service. However there are instances when it would be useful to do more than send a single request to test your HTTP service. WebInject is a test harness that can operate as an intelligent test agent that is able to chain together test cases to form a functional test suite for your web application or web service. For example, lets say you wanted to monitor a web application's functionality through multiple phases: Phase 1 - Connect to the application Phase 2 - Authenticate a user under the web application's login/authentication system Phase 3 - Verify that you can navigate through the application while you're authenticated Phase 4 - Do a sample request that accesses a database to verify it is available to the web application This could not be done in Nagios with a simple check_http which just verifies results of a single request without chaining tests that depend on previous responses. However, we can use WebInject in the Nagios plugin
Sign in Pricing Blog Support Search GitHub This repository Watch 2 Star 1 Fork 0 Qarj/WebInject Code Issues 4 Pull requests 0 Projects 0 Pulse Graphs Permalink https://github.com/Qarj/WebInject/blob/master/webinject.pl Branch: master Switch branches/tags Branches Tags master Nothing to show v2.0.0 v1.99 v1.98 https://gitlab.flux.utah.edu/emulab/emulab-devel/blob/d95ef44f82d7eed39c8e70837fd63719cb6f227e/www/sec-check/webinject/webinjectgui.pl v1.97 v1.96 v1.95 v1.94 v1.93 v1.92 v1.91 v1.90 v1.89 v1.88 v1.87 v1.86 v1.85 v1.84 v1.83 v1.82 v1.81 v1.80 v1.79 v1.78 v1.77 v1.76 v1.75 v1.74 v1.73 v1.70 v1.68 v1.66 v1.65 v1.64 v1.63 v1.62 v1.61 v1.60 v1.59 v1.58 v1.57 v1.56 v1.55 v1.54 v1.53 v1.52 v1.51 v1.50 v1.49 v1.48 v1.47 v1.46 v1.45 v1.44 error i v1.43 v1.42 1.69 Nothing to show Find file Copy path WebInject/webinject.pl Fetching contributors… Cannot retrieve contributors at this time Raw Blame History executable file 3976 lines (3178 sloc) 170 KB #!/usr/bin/perl # $Id$ # $Revision$ # $Date$ use strict; use warnings; use vars qw/ $VERSION /; $VERSION = '2.0.0'; #removed the -w parameter from the first line so that warnings will not be error i cannot displayed for code in the packages # Copyright 2004-2006 Corey Goldberg (corey@goldb.org) # Extensive updates 2015-2016 Tim Buckland # # This file is part of WebInject. # # WebInject is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # WebInject is distributed in the hope that it will be useful, # but without any warranty; without even the implied warranty of # merchantability or fitness for a particular purpose. See the # GNU General Public License for more details. use File::Basename; use File::Spec; use File::Slurp; use LWP; use HTTP::Request::Common; use XML::Simple; use Time::HiRes 'time','sleep'; use Getopt::Long; local $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 'false'; use Socket qw( PF_INET SOCK_STREAM INADDR_ANY sockaddr_in ); use File::Copy qw(copy), qw(move); use File::Path qw(make_path remove_tree); local $| = 1; #don't buffer output to STDOUT ## Variable declarations my ($timestamp, $testfilename); my (%parsedresult); my (%varvar); my ($useragent, $request, $response); my ($latency, $verification_latency, $screenshot_latency); my (%test_step_time); ## record in a hash the latency for eve
4 Wiki Network Create a new issue Commits Issue Boards Files Commits Network Compare Branches Tags d95ef44f82d7eed39c8e70837fd63719cb6f227e Switch branch/tag emulab-devel www sec-check webinject webinjectgui.pl Checkpoint. · 417094e2 417094e2 Russ Fish authored 2006-09-05 04:18:02 +0000 webinjectgui.pl 26.4 KB Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479