WARID Gateway Exposed! [Send SMS to any network]

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.
warezpk
Cadet
Posts: 2
Joined: Tue Apr 24, 2007 1:30 pm

Post by warezpk »

any working link for getting php codes......security coders links expired? where are Mods and Global mods and Admin replace the link with working one
masud
Havaldaar
Posts: 108
Joined: Thu Aug 05, 2004 12:15 am
Location: Fremont, CA
Contact:

Post by masud »

--SP--
blackdaemon
Naik
Posts: 53
Joined: Wed Jan 04, 2006 3:51 pm
Location: Quetta, Pakistan
Contact:

Post by blackdaemon »

8)
I think, therefore i am!
warezpk
Cadet
Posts: 2
Joined: Tue Apr 24, 2007 1:30 pm

Post by warezpk »

Error in login......but as i put my user id and pass in waridtel its goes to web2sms.....whts da solution of error
x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Msgs not getting delivered

Post by x2oxen »

Sms from warid script are not getting delivered.. Has anyone facing same problem??
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
kbukhari
Major General
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Location: Lahore
Contact:

Post by kbukhari »

ufone grps is hacked
--
Syed Kashif Ali Bukhari
+92-345-8444420
http://sysadminsline.com
http://kashifbukhari.com
x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Post by x2oxen »

Oh yes it is! :lol:
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
nomankhn
Colonel
Posts: 714
Joined: Wed Aug 07, 2002 8:00 pm

Post by nomankhn »

could you tell me what exactly happend to ufone

Regards,
Noman Liaquat
x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Post by x2oxen »

They have security hole in their service thats what happened!
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
oni
Cadet
Posts: 3
Joined: Tue Feb 14, 2006 12:04 pm
Location: Lahore
Contact:

hi masuad

Post by oni »

hi masuad,
the warid script is not working any more. It failed to login. One thing that i have noticed is that base url is changed and the new one is

https://members.waridtel.com/cgi-bin/warid/dev1/warid/

After updating, script logged in to the warid site successfully but message sending still fails.

Any help?
Thanks
asaddotcom
Company Havaldaar Major
Posts: 195
Joined: Fri Feb 04, 2005 7:21 pm
Location: Lahore, PK
Contact:

Post by asaddotcom »

this web site is not opening..

http://securitycoders.com/sms/warid2.php

also post here new script if u have any?
Thanking You...

ครค๔
www.apnicollection.com | www.wikisoft.pk
nomankhn
Colonel
Posts: 714
Joined: Wed Aug 07, 2002 8:00 pm

Post by nomankhn »

Why ppl are waiting a person he will write the script and we will use it, at least use some brain and if have difficulty than share within forum, i am sure in this way many people have different approach and have different scripts.

Regards,
Noman Liaquat
nahi_sonu
Cadet
Posts: 3
Joined: Wed Nov 15, 2006 1:16 am
Contact:

Re: hi masuad

Post by nahi_sonu »

oni wrote:hi masuad,
the warid script is not working any more. It failed to login. One thing that i have noticed is that base url is changed and the new one is

https://members.waridtel.com/cgi-bin/warid/dev1/warid/

After updating, script logged in to the warid site successfully but message sending still fails.

Any help?
Thanks
same here.. i did the same thing.. but was not able to send any sms.. it logged in with the new link but was unable to send sms... wht is to be changed now?

here is the source code of waridtel member page web2sms.

Code: Select all

<SCRIPT language="JavaScript">
	
var MAX_COUNT = 160;
function openAddressBook()
{
	window.open("T3/jsp/addressbook/select_contact.jsp?BV_SessionID=@@@@2011739857.1214954446@@@@&BV_EngineID=cccgadeehmgegifcflgcefkdffhdfgh.0&programId=39767", "addressBookWind", "width=550,height=300, menubar='No', location='No'") 

}

function validateForm() { 

	//alert("program ID : "+document.smsform.programId.value);
	
	if(document.smsform.textarea.value == "") {
		alert("Please enter the message to be sent");
		document.smsform.textarea.focus();
		return false;
	}

	if(document.smsform.recipientnumber.value.length == "") {
		if(document.smsform.numbersadd.length == "") {
			alert("Please enter phone number of the recipient");
			document.smsform.recipientnumber.focus();
			return false;
		}
	} else if (isNaN(document.smsform.recipientnumber.value)) {
		document.smsform.recipientnumber.focus();
		alert("Enter a number ");
		return false;
	}
	if(document.smsform.numbersadd.length == 0 ) {
		if(document.smsform.recipientnumber.value.length < 7 ) {
			alert("Invalid Number");
			document.smsform.recipientnumber.focus();
			return false;
		} 
	} else {
		var listLength = document.smsform.numbersadd.length;
		for(i=0;i<listLength;i++) {
			document.smsform.numbersadd.options[i].selected = true;
		}
	}

	
	if (document.smsform.textarea.value.length > MAX_COUNT ) {
		alert("Too much data in the text area ("+document.smsform.T1.value+" characters).\nYour message should not exceed "+MAX_COUNT+" characters.");
		return false;
	}
	
	return true;
}

function addtolist() {
	var receiptno = ""+document.smsform.ndc.value+document.smsform.recipientnumber.value;
	var numberstart = receiptno.substring(0,2);
	var len			= receiptno.length;
	var maxLength =5;

	if(document.smsform.recipientnumber.value == "" ) {
		//alert("Enter a number to add");
		document.smsform.recipientnumber.focus();
		return false;
	} else if(isNaN(document.smsform.recipientnumber.value)) {
			alert("Enter a valid Phone number");
			document.smsform.recipientnumber.focus();
			return false;
		}
		else {
			var number = ""+document.smsform.ndc.value+document.smsform.recipientnumber.value;
			var countryCode	= document.smsform.countrycode.value;
			//number	=	countryCode+number;
			list = document.smsform.numbersadd; //sendSMS.reclist
			var listLength = list.length;
	

			if ( (listLength+1) > maxLength)
			{
				alert("Cannot send SMS message to more than " +maxLength+ " recipients");
				return false;
			}
			
			if(receiptno.length < 10)
			{

				alert("Phone number should be atleast 7 digits long ");
				document.smsform.recipientnumber.focus();
				return false;
			}
			
			// for sorting, targetIndex is where should we insert the number at
			var targetIndex = listLength;
			for( var i = listLength - 1; i >= 0; i-- ) {
				if( list.options[i].text == ("0"+document.smsform.ndc.value + "-"+document.smsform.recipientnumber.value) ) {
					alert( "Number ("+list.options[i].text+") already exists!" );
					return;
				}
				if( list.options[i].text > number ) {
					targetIndex = i;
				}
			}
			for(var i = listLength -1; i >= targetIndex; i--) {
				list.options[i+1] = new Option( list.options[i].text );
			}
			list.options[targetIndex] = new Option(number);
			list.options[targetIndex].value="92" + number;
			list.options[targetIndex].text="0"+document.smsform.ndc.value + "-"+document.smsform.recipientnumber.value;
			
			document.smsform.recipientnumber.value = '';
		}
	
	document.smsform.recipientnumber.focus();

return true;
}


function addFromAddressBook(msisdn) {
	var receiptno = msisdn;
	var numberstart = receiptno.substring(0,2);
	var len			= receiptno.length;
	var maxLength =5;


			var number = msisdn;
			var countryCode	= document.smsform.countrycode.value;

			list = document.smsform.numbersadd; //sendSMS.reclist
			var listLength = list.length;
	

			if ( (listLength+1) > maxLength)
			{
				alert("Cannot send SMS message to more than " +maxLength+ " receipients");
				return false;
			}
			
			if(receiptno.length < 7)
			{

				alert("Phone number should be atleast 7 digits long ");
				document.smsform.recipientnumber.focus();
				return false;
			}
			
			// for sorting, targetIndex is where should we insert the number at
			var targetIndex = listLength;
			for( var i = listLength - 1; i >= 0; i-- ) {
				if( list.options[i].text == ("0"+number.substring(0,3) + "-"+number.substring(3,number.length) )) {
					alert( "Number ("+list.options[i].text+") already exists!" );
					return;
				}
				if( list.options[i].text > number ) {
					targetIndex = i;
				}
			}
			for(var i = listLength -1; i >= targetIndex; i--) {
				list.options[i+1] = new Option( list.options[i].text );
			}
			list.options[targetIndex] = new Option(number);
			list.options[targetIndex].value="92" + number;
			list.options[targetIndex].text="0"+number.substring(0,3) + "-"+number.substring(3,number.length);
			
			document.smsform.recipientnumber.value = '';
		
	
	document.smsform.recipientnumber.focus();

return true;
}

function removeselected() {
	if(document.smsform.numbersadd.selectedIndex < 0) {
		alert( "Select a Phone number" );
	} else {
		var options = document.smsform.numbersadd.options;
		for( var i = options.length - 1; i >= 0; i-- ) {
			if( options[ i ].selected ) {
				options[ i ] = null;
			}
		}
		return false;
	}
}

function countCharacters() {
	setTimeout("countCharactersCall()", 10);
}
var msgSize=0;
function countCharactersCall() {

	//msgSize = MAX_COUNT - document.smsform.textarea.value.length ;
	document.smsform.T1.value=MAX_COUNT - document.smsform.textarea.value.length ;
	if (document.smsform.T1.value < 0) {
		document.smsform.textarea.value = document.smsform.textarea.value.substring(0, MAX_COUNT);
		alert("Your message cannot exceed more than 160 characters");
		
		document.smsform.T1.value = 0;
	} 
}

function addPhoneNumbers(string)
{
	document.smsform.mobilelist.value=string;
	var separator = ',';
	var stringArray = string.split(separator);
	var length=5;
	var existingNumbers=string.split(document.smsform.numbersadd);
	list = document.smsform.numbersadd;
	
	if((list.length+stringArray.length)>6)
	   {
	   alert("Cannot send SMS message to more than 5 receipients.");
	   length=5-list.length;
	   }
	  else{length=stringArray.length-1;
	  }
	for (var i=0; i < length; i++)
	
	{		   
		    	addFromAddressBook(stringArray[i]);	    			    	
			
	}
}

</SCRIPT>
<table border="0" width="95%" id="table1" cellspacing="0" cellpadding="0" align="center">
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td background="/images/search_bg.jpg" colspan="2" height="27"><font face="Verdana" size="5" color="#FF0000">Web To SMS</font></td>

	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2" height="20">
		<table border="0" width="100%" cellspacing="0" cellpadding="0" height="89" align="center">
			<tr>
				<td  height="2" align="left">

					<font face="Verdana" size="1" color="#595959">Send unlimited short messages to other Warid numbers from our free Web-to-SMS service. Broadcast your messages to upto 5 Warid numbers at a time.</font></td>
			</tr>
						<tr>
				<td width="701">&nbsp;</td>
			</tr>
			<form name="smsform" method="post" onSubmit="return validateForm();">
			<input type=hidden name="BV_SessionID" value="@@@@2011739857.1214954446@@@@">
<input type=hidden name="BV_EngineID" value="cccgadeehmgegifcflgcefkdffhdfgh.0">

			<input type="hidden" name="mobilelist" value="">

			<input type="hidden" name="programId" value="39767">
		
			<input type="hidden" name="countrycode" value="92">
			
			<tr>
				<td width="701" align="left">
					<table border="0" width="500" height="167" cellspacing="0" cellpadding="0" id="table27" bgcolor="#FEF9E7">
						<tr>
							<td width="200" valign="bottom"><font face="Verdana" size="1" color="red">Mobile Number</font></td>

							<td width="250" colspan=2></td>
						</tr>
						<tr>
							<td>
							<select name="ndc">
							)
									 <option value="321">321</option>
								)
									 <option value="322">322</option>

								)
									 <option value="323">323</option>
								)
									 <option value="331">331</option>
								)
									 <option value="332">332</option>
								)
									 <option value="333">333</option>
								)
									 <option value="334">334</option>

								)
									 <option value="343">343</option>
								)
									 <option value="344">344</option>
								)
									 <option value="345">345</option>
								)
									 <option value="346">346</option>
								)
									 <option value="300">300</option>

								)
									 <option value="301">301</option>
								)
									 <option value="302">302</option>
								)
									 <option value="306">306</option>
								)
									 <option value="307">307</option>
								)
									 <option value="308">308</option>

								)
									 <option value="303">303</option>
								)
									 <option value="313">313</option>
								)
									 <option value="314">314</option>
								)
									 <option value="364">364</option>
															</select>

							<input type="text" name="recipientnumber" maxlength="7"  style="width:97">
							<input type="button" value="Add" name="Connect0" class="waridbutton" onclick="javascritp:addtolist()">						
							</td>
							<td align="right" colspan=2><input type="button" value="Send SMS From My Address Book" name="Connect0" class="waridbutton" style="width:300" onClick="openAddressBook();"></td>
						</tr>
						<tr height="20">
							<td valign="bottom"><font face="Verdana" size="1" color="red">Recipients</font></td>
							<td valign="bottom"><font face="Verdana" size="1" color="red">Message Text</font></td>

							<td align=right valign="bottom"><font face="Verdana" size="1" color="red">Characters Left&nbsp;</font><input type="text" name="T1" value="160" style="width:30px"></td>
						</tr>
						<tr>
							<td valign="top" >
							<select name="numbersadd" size="6" style="width:180" multiple>
															</select>
								</select></td>
							<td valign="top" colspan=2>

							<textarea rows="6" name="textarea" cols="56" onkeydown="countCharacters();"></textarea></td>
						</tr>
						<tr>
							<td height="25"><input type="button" value="Remove Selected" name="Connect0" class="waridbutton" style="width:180" onclick="JavaScript:removeselected()"></td>
							<td align="right" colspan=2><input type="submit" value="Send Message" name="Connect0" class="waridbutton" style="width:300"></td>
						</tr>
						<tr>
							<td colspan=3 align="right" style="border-left-style: solid; border-left-width: 1px; border-bottom-style: solid; border-bottom-width: 1px"></td>

						</tr>
						<tr>
							<td valign="top"></td>
							<td colspan=2 align="right" style="border-left-style: solid; border-left-width: 1px; border-bottom-style: solid; border-bottom-width: 1px"></td>
						</tr>
					</table>
				</td>
			</tr>
			<input type=hidden name="fromPage" value="web2sms">			
			</form>

		</table>
		</td>
	</tr>
	<tr>
		<td colspan="2" height="25" valign="top">&nbsp;</td>
	</tr>
</table>
<Script>


</script>
ysajid
Lance Naik
Posts: 26
Joined: Thu Apr 07, 2005 2:57 pm

code

Post by ysajid »

something is wrong in submitting the data...

login works by changing base url

http://www.sajid.biz/sms/sms.txt

but still error in sending message
x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Post by x2oxen »

I m trying to use it but not able to log in. It gives an error
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
Post Reply