operat0r_001 Posted September 4, 2007 Share Posted September 4, 2007 * installed libcurl support under phpextensions * used firefox LiveHTTPHeaders plugin to get data #!/usr/local/bin/bash export varcingular=`php /bin/CINGULAR.PHP | grep Used | awk '{print $2}'` if [[ "$varcingular" -gt "400" ]] then echo WARNING $varcingular minutes |mailx ##########@cingularme.com fi <?php # change ########## and password $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,'https://www.snort.org/login/'); curl_setopt($ch, CURLOPT_USERAGENT, 'rmccurdy_com'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_COOKIEFILE, cookie); curl_setopt($ch, CURLOPT_COOKIEJAR, cookie); $result = curl_exec ($ch); curl_close ($ch); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,'https://www.wireless.att.com/olam/loginAction.doview'); curl_setopt($ch, CURLOPT_USERAGENT, 'rmccurdy_com'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, 'actionEvent=loginInProgress&targetURL=&wireless_num=##########&pass=password&x=30&y=4&rememberCtn=on'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_REFERER, 'https://www.wireless.att.com/olam/loginAction.doview'); curl_setopt($ch, CURLOPT_COOKIEFILE, cookie); curl_setopt($ch, CURLOPT_COOKIEJAR, cookie); $result = curl_exec ($ch); curl_close ($ch); # print $result; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,'https://www.wireless.att.com/olam/loginAction.olamexecute'); curl_setopt($ch, CURLOPT_USERAGENT, 'rmccurdy_com'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, 'actionEvent=login&reportActionEvent=A_LGN_LOGIN_SUB&fromPage='); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_REFERER, 'https://www.wireless.att.com/olam/loginAction.doview'); curl_setopt($ch, CURLOPT_COOKIEFILE, cookie); curl_setopt($ch, CURLOPT_COOKIEJAR, cookie); $result = curl_exec ($ch); curl_close ($ch); # print $result; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,'https://www.wireless.att.com/olam/dashboardAction.olamexecute'); curl_setopt($ch, CURLOPT_USERAGENT, 'rmccurdy_com'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_COOKIEFILE, cookie); curl_setopt($ch, CURLOPT_COOKIEJAR, cookie); $result = curl_exec ($ch); curl_close ($ch); print $result; ?> # +MobileNumber@alltelmessage.com Alltel # +MobileNumber@message.alltel.com Alltel (alternate) # +MobileNumber@mmode.com former AT&T users on Cingular # +MobileNumber@mobile.celloneusa.com Cellular One # +MobileNumber@mobile.mycingular.com Cingular # +MobileNumber@page.nextel.com Nextel # +MobileNumber@omnipointpcs.com OmnipointPCS # +MobileNumber@qwestmp.com Qwest # +MobileNumber@messaging.sprintpcs.com Sprint (US) # +MobileNumber@tmomail.com T-Mobile # +MobileNumber@vtext.com Verizon (incl. AirTouch) # +MobileNumber@vzwpix.com Verizon (incl. AirTouch) for pictures (MMS) # +MobileNumber@vmobl.com Virgin Mobile (US customers only) # +MobileNumber@teleflip.com All carriers Quote Link to comment Share on other sites More sharing options...
SomeoneE1se Posted September 4, 2007 Share Posted September 4, 2007 what does this do? Quote Link to comment Share on other sites More sharing options...
operat0r_001 Posted September 4, 2007 Author Share Posted September 4, 2007 script to show you how many minutes you have left so you never go over again Quote Link to comment Share on other sites More sharing options...
K1u Posted September 4, 2007 Share Posted September 4, 2007 script to show you how many minutes you have left so you never go over again Did you code this. Quote Link to comment Share on other sites More sharing options...
operat0r_001 Posted February 18, 2008 Author Share Posted February 18, 2008 Yes Quote Link to comment Share on other sites More sharing options...
SmoothCriminal Posted February 19, 2008 Share Posted February 19, 2008 Nice delayed reaction. Quote Link to comment Share on other sites More sharing options...
operat0r_001 Posted February 19, 2008 Author Share Posted February 19, 2008 Ya its been a while have a lot more spare time now so I will be checking out the forums more. I updated the code on my site they do refer checking now or something I can't remember what they changed but it quit working about a week ago i had to fix it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.