I Get Email
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>test@test.com</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
Well, not to play Devil’s Advocate here, but since it does seem to be a user-registration service, I suppose it is possible that he has a legitimate need to register 5000 users with this service, however, it seems there should probably be a bulk interface for doing that.
It’s unrelated to this blog entry, but I see you have a new blog title. What was wrong with Ooblick? Not a real word?
The domain name ooblick.com hasn’t changed, just the name of the weblog. For one thing, “Ooblog” struck me as being both cutesy, and almost as ugly as the word “blog” itself. For another, I love the phrase “epsilon clue” (as in “Anyone with even epsilon clue should realize that…”). Also, it’s more googlable.
“Anyone with even epsilon clue should realize that…” … is that a Brave New World reference?
If so, damn, I’m glad I’ve read as many books as I have. I’d hate to miss out on all of this stuff.
No, math and (mostly) CS:
Math, as in “For every δ, there’s an ε such that δ > ε”. δ is usually assumed to be a tiny number, and ε even smaller.
And from CS, epsilon as in floating-point precision (which usually winds up close to the smallest representable nonzero number).
Whenever someone asks again, you might be better off explaining that it is a Brave New World reference. Surprisingly, it’s a less nerdy explanation 😛
You say that like it’s a good thing.