如何刷应用商店排名0+

9,858 views / 2013.07.01 / 9:09 下午

目前应用商店可谓五花八门,比较简单的是直接把官方商店的应用信息都抓过来,赚个展现的广告费,如gao7.com; 略复杂的是内容全部开发者自提,相当于重新做了个应用商店,可以和官方抗衡,如91.com; 再复杂些的就是结合前面两点的内容,既有开发者的提交,也有自动从官方的抓取,如同步推和25pp.  杜工将以25pp为例,从技术层面介绍刷应用排名的详细的方法。

知识储备:

1. tcp通讯的基本方式

2.抓包工具的使用 ,杜工喜欢的是fiddler.(http://fiddler2.com/)

3.家用路由器基本配置

4.php基础

原理:

利用路由器重拨功能变换ip,然后用php工具模拟手机助手向服务器发送下载数据,以达到目的。

Step 1:

打开手机应用PP助手,找到要刷的应用,开始抓包,然后点下载,停止抓包。在抓包工具中找到下载过程中进行的网络通讯,将post的内容予以保存. 此时注意,post的内容是一堆乱码,不要复制保存,而要使用16进制模式的”save to selected”功能, 我们将其保存为hex文件. 并记录header头信息:

 
1

图1 找到下载的tcp连接

 

2

图2 保存post的boday信息到文件

 

记录header头信息:

POST <a href="http://mobileup.25pp.com/index.php:80">http://mobileup.25pp.com/index.php:80</a> HTTP/1.1
Host: mobileup.25pp.com
Connection: keep-alive
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Cookie: pgv_pvi=4947xxxxx; Hm_lvt_80c7667d40c35eec40368ef5cd6547d4=1372384421; __utma=113739972.1739925924.1372384420.1372384420.1372384420.1; __utmz=113739972.1372384420.1.1.utmcsr=baidu|utmccn=(organic)|utmcmd=organic|utmctr=%E7%BE%8E%E8%85%BF%E9%89%B4%E8%B5%8F
Accept-Language: zh-cn
Accept: */*
Content-Length: 63
Connection: keep-alive
User-Agent: 25pp/0.990 CFNetwork/609.1.4 Darwin/13.0.0

Step 2:

用电脑登陆到路由器管理后台,查看断开连接和开始连接的页面,并记录header头信息。我家的比较简单,直接post不同变量到同一个链接地址,就可以实现路由器重拨,以达到换ip功能。该过程具体不在详述,一会儿在php文件中体现。

 

Step 3:

开始编码:

 

<?php
 
//开始模拟下载过程
$host = "mobileup.25pp.com";
$path = "index.php:80";
$port = 80;
$content = file_get_contents("hex");
 
$data = "POST /" . $path . " HTTP/1.1\r\n";
$data .= "Connection: keep-alive\r\n" . "Accept-Encoding: gzip, deflate\r\n" . "Content-Type: application/x-www-form-urlencoded\r\n" . "Cookie: pgv_pvi=4947xxxxx; Hm_lvt_80c7667d40c35eec40368ef5cd6547d4=1372384421; __utma=113739972.1739925924.1372384420.1372384420.1372384420.1; __utmz=113739972.1372384420.1.1.utmcsr=baidu|utmccn=(organic)|utmcmd=organic|utmctr=%E7%BE%8E%E8%85%BF%E9%89%B4%E8%B5%8F\r\nAccept-Language: zh-cn\r\n" . "Accept: */*\r\n" . "Content-Length: 63\r\n" . "Connection: keep-alive\r\n" . "User-Agent: 25pp/0.990 CFNetwork/609.1.4 Darwin/13.0.0\r\n";
 
$data .= "\r\n";
$data .= $content . "\r\n\r\n";
//刷1000次不过分吧?
while ($j < 1000) {
	$j++;
	for($i = 0;$i < 21;$i++) {
		$ock = fsockopen($host, $port);
		if (!$ock) {
			echo 'No response from ' . $host . "\n";; 
			// die;
		} 
		fwrite($ock, $data);
		while (!feof($ock)) {
			echo fgets($ock, 1024);
		} 
		sleep(1);
		echo $j . "\t" . $i . "\n";
	} 
	reconnect();
       //路由器更换ip需要一定的时间,视情况而定。
	sleep(15 * 60);
} 
function curl($url, $ifpost = 0, $datafields = '', $cookiefile = '') {
       //这个地方要注意了,是路由器的认证登陆信息,抓包的时候应该会有所体现。
	$header = array("Authorization: Basic XXXXXXXXXX=");
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
	$ifpost && curl_setopt($ch, CURLOPT_POST, $ifpost);
	$ifpost && curl_setopt($ch, CURLOPT_POSTFIELDS, $datafields);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
	curl_setopt($ch, CURLOPT_ENCODING, 'gzip,deflate');
	$cookiefile && curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile);
	$cookiefile && curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiefile);
	$r = curl_exec($ch);
	curl_close($ch);
	return $r;
} 
function reconnect() {
	// 断开
	$t1 = curl("http://192.168.1.1/RST_conn_status.htm");
	preg_match("/timestamp=([0-9]+)/", preg_replace("/[\n]/", "", $t1), $m);
	curl("http://192.168.1.1/apply.cgi?/RST_conn_status.htm%20timestamp=" . $m[1], 1, "submit_flag=connect_status&endis_connect=0");
	sleep(10); 
	// 连接
	$t1 = curl("http://192.168.1.1/RST_conn_status.htm");
	preg_match("/timestamp=([0-9]+)/", preg_replace("/[\n]/", "", $t1), $m);
	curl("http://192.168.1.1/apply.cgi?/RST_conn_status.htm%20timestamp=" . $m[1], 1, "submit_flag=connect_status&endis_connect=3");
	sleep(20);
}

 

好了,编码完成。到 cmd中运行下看看效果吧。

Categories: 感悟 Tags:

国外VPS推荐0+

15,130 views / 2013.05.31 / 4:04 下午

不知道不觉中,本站使用的VPS已经三年多了,这三年不管从服务还是稳定性都比较满意。前文(http://www.71j.cn/archives/250)已经做过推荐了,忍不住再推荐下:
http://www.diahosting.com/client/aff.php?aff=1041
有任何使用问题可联系24小时QQ客服或者电话。

Categories: 感悟 Tags:

奉献出一个封装的curl函数,便于调用0+

8,357 views / 2013.05.30 / 4:04 下午

抓数据专用

 

function curl($url, $ifpost = 0, $datafields = '', $cookiefile = '', $v = false) {
 $header = array("Connection: Keep-Alive","Accept: text/html, application/xhtml+xml, */*", "Pragma: no-cache", "Accept-Language: zh-Hans-CN,zh-Hans;q=0.8,en-US;q=0.5,en;q=0.3","User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)");
 $ch = curl_init();
 curl_setopt($ch, CURLOPT_URL, $url);
 curl_setopt($ch, CURLOPT_HEADER, $v);
 curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
 $ifpost && curl_setopt($ch, CURLOPT_POST, $ifpost);
 $ifpost && curl_setopt($ch, CURLOPT_POSTFIELDS, $datafields);
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
 curl_setopt($ch, CURLOPT_ENCODING, 'gzip,deflate');
 $cookiefile && curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile);
 $cookiefile && curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiefile);
 $r = curl_exec($ch);
 curl_close($ch);
 return $r;
}
Categories: 感悟 Tags:

用支付宝支付godaddy失败,钱却扣了14+

27,495 views / 2013.04.27 / 8:08 上午

在godaddy上续费域名,发现居然有支付宝的支付方式,很开心的选择了他,却不不幸的失败了,本以为可能有延迟,等一会儿订单就会被确认,结果等了一天也不行。遂给godaddy提ticket,回复如下:
Thank you for your response. I see you need assistance with an order placed through Alipay.

When you place an order with us using international payment options, they can take up to 30 days to provide payment confirmation (though it’s typically less than 24 hours). While we wait for payment confirmation, we track it as a Pending Order. This means products you order are not immediately available. However, when we receive payment confirmation, we attempt to fulfill the products and services in your Pending Order.

Domain names and other services are not registered or fulfilled until we receive payment confirmation. In the interim, someone else can register domain names in your Pending Order, causing your registration to fail and that portion of your order to be canceled. However, we will fulfill and charge you for any other services from your Pending Order.

意思就是让我等,最多可能要30天。这太不靠谱了,于是又回复他们,让快点确认,他们回复说不行,只能等,我说等不了,退款吧,他们说不行,等30天后才能退。我勒个去,就这样来回邮件了9天,依然没动静。我终于忍不了了,于是取消了pending的订单,结果钱没退我。只好再发他们邮件:
I called Alipay again, they said the fund is still on your account. If you are not going to give my money back, they will help me take the judicial process to prosecute you.

I don’t believe Godaddy is so irresponsibility. Please just have a check to see how many times I have contacted you for this order. You really disappointed me.
Yipeng Du
4/26/2013
9:16 am
How funny! Alipay told me to contact you, you told me to contact Alipay!
So this’s godaddy’s close service?!
Go Daddy Support
4/26/2013
9:07 am
Dear Paddy,

Thank you for your reply. If you do not see the refund, please contact Alipay for review and assistance.

Please let us know if you have any further questions, comments, or concerns. Our service departments and telephone lines are open 24 hours a day, 365 days a year to accommodate your needs anytime.

You can reach us by phone at any time at (480) 505-8877, or simply reply to this email.

Sincerely,
Pauline M.
Online Support
Go Daddy Support
4/26/2013
12:36 am
Dear,I canceled this order manually,but my fund is still not available in Alipay.
Please help.

Yours sincerly
Paddy

—原始邮件—
在 2013年04月26日 08:44
“support” 写道:
Information regarding your support request. Our support staff has responded to your request, details of which are described below: Discussion Notes

Support Staff Response
Dear Paddy,

Thank you for your reply. When a charge is pending, that means we have not taken the funds. As such, we cannot issue a refund. Additionally, if the order is canceled, your funds should be once again available in AliPay. However, please note that we cannot cancel a pending order, and we apologize for any inconvenience this may cause you.

Please let us know if we can help you in any other way.

Sincerely,
Sara P.
Online Support Team

Customer Inquiry
Dear,you didn’t get my real meaning,
please help me to take the refund process and do not tell me to wait again.

这帮让人抓狂的客服,看来真是吃硬不吃软,我说要投诉了,他们才给升级2线:
Due to its complex nature, your issue has been relayed to our Advanced Technical Support Team. Our most skilled technicians will be working to resolve your issue quickly and completely. You will be notified promptly upon resolution.

This is your Incident ID: 18952274

To thank you for your patience, we’d like you to enjoy 20%* off your order of $100 or more at GoDaddy.com. Simply use source code GDBBA685 when you order or mention the code when you call (480) 505-8877.

好吧,看来还要再等一天了。

2013-5-2 更新 可能老美也要过五一劳动节,今天才给我最新的回复:

Dear Yipeng Du,

Thank you for your order. We received funding from AliPay for your transaction, and your order has been processed.

To begin using your product(s), or to view your account information, please visit Go Daddy and log in to your account with your username or customer number and password.

For reference, your order information is below:

CUSTOMER NUMBER: 332***
USERNAME: ***
RECEIPT NUMBER: 53721***
ORDER TOTAL: ¥499.31
CUSTOMER SERVICE: (480) 505-8877

If you have any questions about this order or the products/services you’ve purchased, please feel free to access our online support options.

Thanks again for your order,
Go Daddy

意思是说,我们已经收到您的款,请再等待处理结果。

又过了一分钟,给我新的回复:

Dear Yipeng Du,
Thank you for your order. Unfortunately, we could not process your order using AliPay for the following reason:
The order is no longer available.
If funds were received, we have refunded the full amount received back to your AliPay account. REFUND AMOUNT: ¥499.31
Again, your order was not processed. If you wish to re-order, please use the following link to return to your shopping cart.

Please contact us if you need any further assistance.
We look forward to your continued patronage, Go Daddy

 

说订单已经失效,他们将退款。废话,订单我都取消了,不退款能怎样。继续等吧,看样子应该能很快退到支付宝了。
2013-5-4 更新 今天给我最新的回复:

Dear Paddy,

Thank you for your response. We have escalated this issue and were able to take action to ensure the funds were returned to Alipay. They should be returning the funds to you shortly. We appreciate your patience and understanding while we investigated this issue further.

Please let us know if there is anything else we can assist you with.

Thank you,
Aaron K.
Online Support Team

紧接着不到两个小时,收到支付宝的退款通知。

至此,历时近一个月,退款全部完成。

Categories: 感悟 Tags:

地址: http://71j.cn/ip.php
功能很简单,包括ip地址源解析和域名的whois解析
QQ截图20130419113224

Categories: 感悟 Tags: