Apparently, having my name in CPAN is a sign that I know everything about Perl, SOAP, XML, and security.
Unless someone can come up with a legitimate reason to send 5000 authentication requests to a web server (including an explanation of why that’s not a brain-damaged way to solve the problem at hand), I’m going to assume that this guy is a wannabe script kiddie.
This isn’t the first time someone’s asked me to , but this time around, I don’t feel like toying with him. Script kiddies are people too.
Then again, so’s Soylent Green (as put it).
Hello ,This is Mr. Avergonzado from singapore. Im actaully in need of your help regarding a code in Perl to Post XML statements in our web server for password authorization. The following statement below is how i can type the post statement of XML to our web server:after I issue telnet.( $ telenet <web-server hostname> <port#>)=====================================================================================================================
POST /Ws/RegistrationService.asmx?WSDL HTTP/1.1SOAPAction: “http://www.nlb.gov.sg/ws/RegistrationService:registerUserIn”Content-Type: text/xml; charset=utf-8Accept: text/xml, multipart/related,
text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2User-Agent: Java/1.5.0_09Host: <localhost>Connection: keep-aliveContent-Length: 721<?xml version=”1.0″ ?><S:Envelope xmlns:S=”http://schemas.xmlsoap.org/soap/envelope/”><S:Body><RegisterUserRequest xmlns=”http://www.nlb.gov.sg/ws/RegistrationService”><ServiceContext><AppCode>LDNet</AppCode><AppPwd>ldnetpassword</AppPwd><ClientIP><localhost></ClientIP><EndUserId></EndUserId></ServiceContext><ApplicationID>LDNet</ApplicationID><UserId>[redacted]</UserId><Password>[redacted]</Password><UserName>NA</UserName><SecurityQuestion>What NLB means?</SecurityQuestion><SecurityAnswer>National Library Board</SecurityAnswer><IsSingaporeanOrPR>false</IsSingaporeanOrPR><Email>firstname.lastname@example.org</Email><IP><localhost></IP></RegisterUserRequest></S:Body></S:Envelope>==========================================================================================Then this is the correct response I get. I also need to capture the response for reference and verification.============================================================================================
HTTP/1.1 200 OKConnection: closeDate: Thu, 10 Jan 2008 08:37:49 GMTServer: Microsoft-IIS/6.0X-Powered-By: ASP.NETX-AspNet-Version: 2.0.50727Cache-Control: private, max-age=0Content-Type: text/xml; charset=utf-8Content-Length: 477<?xml version=”1.0″ encoding=”utf-8″?><soap:Envelope xmlns:soap=”http://schemas.xmlsoap.org/soap/envelope/”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema”><soap:Body><RegisterUserResponse xmlns=”http://www.nlb.gov.sg/ws/RegistrationService”><Status>OK</Status><Message>User is added to AD successfully.</Message><ErrorMessage>User is added to AD successfully.</ErrorMessage></RegisterUserResponse></soap:Body></soap:Envelope>======================================================================================================My problem is I need to pass 5000 usernames and passwords to the web server,thats why I need to script it in perl or java using telnet. It will take days if I will use the post statements above for singular records. Hope you can help me how to script it in Perl or java so that I can send as many of this XML to the web server. Thanks.Please,please,please,please,please,please,please,please,please,please help me…….Mr. AVergonzado