`
wolfmaster
  • 浏览: 154841 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
收藏列表
标题 标签 来源
start javaw -jar "F:\netbeans\GUIFormExamples\dist\GUIFormExamples.jar"
start javaw -jar "F:\netbeans\GUIFormExamples\dist\GUIFormExamples.jar"
掉线手机sql
select b.host_ip ip,c.name model,serialnum from n_device_dynamic b inner join n_device_model c
on b.model_id=c.id where STATUS=2  order by b.host_ip,c.name desc
qMD5
1.
http://xui.ptlogin2.qq.com/cgi-bin/xlogin?proxy_url=http%3A//qzs.qq.com/qzone/v6/portal/proxy.html&daid=5&pt_qzone_sig=1&hide_title_bar=1&low_login=0&qlogin_auto_login=1&no_verifyimg=1&link_target=blank&appid=549000912&style=22&target=self&s_url=http%3A//qzs.qq.com/qzone/v5/loginsucc.html?para=izone&pt_qr_app=%E6%89%8B%E6%9C%BAQQ%E7%A9%BA%E9%97%B4&pt_qr_link=http%3A//z.qzone.com/download.html&self_regurl=http%3A//qzs.qq.com/qzone/v6/reg/index.html&pt_qr_help_link=http%3A//z.qzone.com/download.html

2.
uin       = 你的QQ号
appid     = aid       //第二步截获的
login_sig = login_sig //第二步截获的
http://check.ptlogin2.qq.com/check?regmaster=&uin=52250135&appid=549000912&js_ver=10080&js_type=1&login_sig=gZeXnUU4j5LXTKstye*Di0h*3t2R-Ly-E2XW3SDwM9BX8EbOOmBFbNu10N9IQvyX&u1=http%3A%2F%2Fqzs.qq.com%2Fqzone%2Fv5%2Floginsucc.html%3Fpara%3Dizone&r=0.20558942202478647
ptui_checkVC('0','!QSP','\x00\x00\x00\x00\x03\x1d\x46\x17');

3.
http://ptlogin2.qq.com/login?u=52250135&verifycode=!TML&p=82AE845457F509C0C9944DC06A0F680C&pt_rsa=0&u1=http%3A%2F%2Fqzs.qq.com%2Fqzone%2Fv5%2Floginsucc.html%3Fpara%3Dizone&ptredirect=0&h=1&t=1&g=1&from_ui=1&ptlang=2052&action=2-19-1401291690460&js_ver=10080&js_type=1&login_sig=gZeXnUU4j5LXTKstye*Di0h*3t2R-Ly-E2XW3SDwM9BX8EbOOmBFbNu10N9IQvyX&pt_uistyle=32&aid=549000912&daid=5&pt_qzone_sig=1

------------------------------------------------------------------------------------------------------------
import java.io.ByteArrayOutputStream;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;

public class MD5Security
{
	public static final String HEXSTRING = "0123456789ABCDEF";

	public static String md5(String originalText) throws Exception
	{
		byte buf[] = originalText.getBytes("ISO-8859-1");
		StringBuffer hexString = new StringBuffer();
		String result = "";
		String digit = "";

		try
		{
			MessageDigest algorithm = MessageDigest.getInstance("MD5");
			algorithm.reset();
			algorithm.update(buf);

			byte[] digest = algorithm.digest();

			for (int i = 0; i < digest.length; i++)
			{
				digit = Integer.toHexString(0xFF & digest[i]);

				if (digit.length() == 1)
				{
					digit = "0" + digit;
				}

				hexString.append(digit);
			}

			result = hexString.toString();
		}
		catch (Exception ex)
		{
			result = "";
		}

		return result.toUpperCase();
	}

	public static String hexchar2bin(String md5str) throws UnsupportedEncodingException
	{
		ByteArrayOutputStream baos = new ByteArrayOutputStream(md5str.length() / 2);

		for (int i = 0; i < md5str.length(); i = i + 2)
		{
			baos.write((HEXSTRING.indexOf(md5str.charAt(i)) << 4 | HEXSTRING.indexOf(md5str.charAt(i + 1))));
		}

		return new String(baos.toByteArray(), "ISO-8859-1");
	}

	/**
	 *
	 * @param qq http://check.ptlogin2.qq.com/check?uin={0}&appid=15000101&r={1} 返回的第三个值
	 * @param password QQ密码
	 * @param verifycode 验证码
	 * @return 加密后的密码
	 * @throws UnsupportedEncodingException
	 * @throws Exception
	 */
	public static String GetPassword(String qq, String password, String verifycode) throws Exception
	{

		String P = hexchar2bin(md5(password));
		String U = md5(P + hexchar2bin(qq.replace("\\x", "").toUpperCase()));
		String V = md5(U + verifycode.toUpperCase());

		return V;
	}

	public static void main(String[] args) throws Exception
	{
		System.out.println(GetPassword("\\x00\\x00\\x00\\x00\\x03\\x1d\\x46\\x17", "pwd", "!TML"));
		//target:82AE845457F509C0C9944DC06A0F680C
		//System.out.println(md5("\\x00\\x00\\x00\\x00\\x90\\xbe\\x76\\xce"));
	}
}
http cookie
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Net;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.label1.Text = "开始。。";
            Post1(null,null);
        }

        private void Post1(string url, string indata)
        {

            string outdata = "";
            CookieContainer myCookieContainer = new CookieContainer();
            //新建一个CookieContainer来存放Cookie集合 
            HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create("http://www.iteye.com/");
            //新建一个HttpWebRequest 
            myHttpWebRequest.ContentType = "application/x-www-form-urlencoded";
           // myHttpWebRequest.ContentLength = indata.Length;
            myHttpWebRequest.Method = "GET";
            myHttpWebRequest.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36";
            myHttpWebRequest.CookieContainer = myCookieContainer;
            //设置HttpWebRequest的CookieContainer为刚才建立的那个myCookieContainer 
           // Stream myRequestStream = myHttpWebRequest.GetRequestStream();
            //StreamWriter myStreamWriter = new StreamWriter(myRequestStream, Encoding.GetEncoding("gb2312"));
           // myStreamWriter.Write(indata, 0, indata.Length);
            //把数据写入HttpWebRequest的Request流 
           // myStreamWriter.Close();
           // myRequestStream.Close();
            //关闭打开对象 

            HttpWebResponse myHttpWebResponse = (HttpWebResponse)myHttpWebRequest.GetResponse();
            //新建一个HttpWebResponse 
            myHttpWebResponse.Cookies = myCookieContainer.GetCookies(myHttpWebRequest.RequestUri);
            //获取一个包含url的Cookie集合的CookieCollection 
            Stream myResponseStream = myHttpWebResponse.GetResponseStream();
            StreamReader myStreamReader = new StreamReader(myResponseStream, Encoding.GetEncoding("UTF-8"));
            outdata = myStreamReader.ReadToEnd();
            //把数据从HttpWebResponse的Response流中读出 
            myStreamReader.Close();
            myResponseStream.Close();
            Console.WriteLine(outdata);
            Console.WriteLine("************************************************************************************************************************************************");
            foreach(Cookie c in myHttpWebResponse.Cookies)
            {
                    Console.WriteLine("name:"+c.Name+"-----value:"+c.Value);
            }

        }


         private void Post2(string url, string indata)
         {
            
             string outdata = "";
             CookieContainer myCookieContainer = new CookieContainer();
             //新建一个CookieContainer来存放Cookie集合 
             HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create(url);
             //新建一个HttpWebRequest 
             myHttpWebRequest.ContentType = "application/x-www-form-urlencoded";
             myHttpWebRequest.ContentLength = indata.Length;
             myHttpWebRequest.Method = "POST";
             myHttpWebRequest.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36";
             myHttpWebRequest.CookieContainer = myCookieContainer;
             //设置HttpWebRequest的CookieContainer为刚才建立的那个myCookieContainer 
             Stream myRequestStream = myHttpWebRequest.GetRequestStream();
             StreamWriter myStreamWriter = new StreamWriter(myRequestStream, Encoding.GetEncoding("gb2312"));
             myStreamWriter.Write(indata,0,indata .Length);
             //把数据写入HttpWebRequest的Request流 
             myStreamWriter.Close();
             myRequestStream.Close();
             //关闭打开对象 

             HttpWebResponse myHttpWebResponse = (HttpWebResponse)myHttpWebRequest.GetResponse();
             //新建一个HttpWebResponse 
             myHttpWebResponse.Cookies = myCookieContainer.GetCookies(myHttpWebRequest.RequestUri);
             //获取一个包含url的Cookie集合的CookieCollection 
             Stream myResponseStream = myHttpWebResponse.GetResponseStream();
             StreamReader myStreamReader = new StreamReader(myResponseStream, Encoding.GetEncoding("gb2312"));
             outdata = myStreamReader.ReadToEnd();
             //把数据从HttpWebResponse的Response流中读出 
             myStreamReader.Close();
             myResponseStream.Close();
             Console.WriteLine(outdata);
             //显示"登录" 
             //拿到了Cookie,再进行请求就能直接读取到登录后的内容了 
             myHttpWebRequest = (HttpWebRequest)WebRequest.Create(url);
             myHttpWebRequest.CookieContainer = myCookieContainer;//* 
             //刚才那个CookieContainer已经存有了Cookie,把它附加到HttpWebRequest中则能直接通过验证 
             myHttpWebResponse = (HttpWebResponse)myHttpWebRequest.GetResponse();
             myHttpWebResponse.Cookies = myCookieContainer.GetCookies(myHttpWebRequest.RequestUri);
             myResponseStream = myHttpWebResponse.GetResponseStream();
             myStreamReader = new StreamReader(myResponseStream, Encoding.GetEncoding("gb2312"));
             outdata = myStreamReader.ReadToEnd();
             myStreamReader.Close();
             myResponseStream.Close();
             Console.WriteLine(outdata);
             //再次显示"登录" 
             //如果把*行注释调,就显示"没有登录" 
        }
    }


}
css,jss 学习
http://bbs.csdn.net/topics/340173664 

http://bbs.csdn.net/topics/340173659 

http://www.cnblogs.com/TomXu/archive/2011/12/15/2288411.html 
wireshak过滤
((ip.src == 10.3.51.152 && ip.dst== 58.251.148.163)|| (ip.src == 58.251.148.163  && ip.dst== 10.3.51.152)) && (tcp && http)

http://www.2cto.com/Article/201206/135379.html
wolfqq
1871911273@,1111
Global site tag (gtag.js) - Google Analytics