ByXiaoXie

Gary

头像

@byxiaoxie3年前

07/6
23:39
Home

关于背景图版权

该背景图是本人PS还原的,会出现有侵犯版权问题,请不要盗用,谢谢 ByXiaoXie!

该背景图是本人PS还原的,会出现有侵犯版权问题,请不要盗用,谢谢 ByXiaoXie!

该背景图是本人PS还原的,会出现有侵犯版权问题,请不要盗用,谢谢 ByXiaoXie!

关于背景图版权

头像

@byxiaoxie1年前

03/12
23:41
Home

C# 查IP国家/地区

引用:using System.Net;
/// <summary>
/// 查IP国家/地区
/// </summary>
/// <param name="strIP"></param>
/// <returns></returns>
public static string GetIPCitys(string strIP)
{
    string Url = null;
    string Text = null;
    string c = null;
    try
    {
        Url = "http://opendata.baidu.com/api.php?query=" + strIP + "&co=&resource_id=6006&t=1412300361645&ie=utf8&oe=gbk&cb=op_aladdin_callback&format=json&tn=baidu&cb=jQuery1102026811896078288555_1412299994977&_=1412299994981";
	WebRequest wReq = System.Net.WebRequest.Create(Url);
        wReq.Timeout = 2000;
        WebResponse wResp = wReq.GetResponse();
        Stream respStream = wResp.GetResponseStream();
        StreamReader reader = new StreamReader(respStream, Encoding.GetEncoding("gb2312"));
        Text = reader.ReadToEnd();
		
	//取文本内容中间文字 - 开始
        int i = Text.IndexOf("location\":\"") + 11;
        int j = Text.IndexOf("titlecont")-5;
        c = Text.Substring(i, j - i + 2);
	//取文本内容中间文字 - 结束
		
        if (c != "")
        {
            return c;
        }
        else
        {
            c = "未知";
        }
    }
    catch
    {
        c = "错误";
    }
    return c;
}

 

C# 查IP国家/地区

头像

@byxiaoxie3年前

07/31
17:23
Home

麦当劳免费雪碧,活动过期时间:2017-9-5

免费麦当劳雪碧(建议用微信截图或者直接给他),领取时间:早上9点到晚上6点,方法请看网站说明(必看),每人最多领一到两次否则会被发现,不怕的话你也可以无限领,我领两个就被问了!

麦当劳免费雪碧,活动过期时间:2017-9-5

头像

@byxiaoxie3年前

07/14
17:43
Home

PHP密码验证(源代码)

<!--
*****************
*By:TKS 17-7-13
******************
-->
<?php
if (isset($_POST['password']) && md5($_POST['password']) == md5('test')) 
{
	echo 'ByXiaoXie';
} 
else 
{
    echo <<<'EOF'
		<!DOCTYPE html>
		<html lang="en">
			<head>
				<meta charset="UTF-8">
				<title>ByXiaoXie</title>
			</head>
			<body>
				<form action='' method='post'>
				<input type='password' name="password" />
				<input type='submit' value='LOGIN'>
				</form>
			</body>
		</html>
EOF;
}
?>

PHP密码验证(源代码)

头像

@byxiaoxie1年前

01/31
14:44
Home

PUBG Mobile 日服IP列表

添加IP列表代理后进游戏即可切换到正常日服可领活动和日服箱子!

需代理的IP列表:

23.209.32.118
23.55.0.0/16
31.13.0.0/16
49.51.0.0/16
54.219.160.194
54.183.61.55
119.28.0.0/16
120.204.10.204
178.162.0.0/16
183.36.108.31
183.57.48.33
203.205.0.0/16
223.167.86.33

PUBG Mobile 日服IP列表

头像

@byxiaoxie1年前

11/2
04:17
Home

DC Radar 搭建Hosts中转

此方法仅用与[ubuntu 14.04+ debian 8]系统
服务器:系统平台[Debian 8 x64] 测试IP:[149.28.13*.**] 主机:系统平台[Windows 7]

先更新并安装依赖库

apt update  && apt upgrade -y

apt install -y git build-essential autotools-dev cdbs debhelper dh-autoreconf dpkg-dev gettext libev-dev libpcre3-dev libudns-dev pkg-config fakeroot devscripts supervisor

阅读全文 →

DC Radar 搭建Hosts中转

头像

@byxiaoxie2年前

08/30
23:26
Home

C# ini配置文件读写

ini.cs 源代码:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;

namespace ini_config
{
    /// <summary>
    /// ini文件类
    /// </summary>
    public class IniFile
    {
        private string m_FileName;

        public string FileName
        {
            get { return m_FileName; }
            set { m_FileName = value; }
        }

        [DllImport("kernel32.dll")]
        private static extern int GetPrivateProfileInt(
            string lpAppName,
            string lpKeyName,
            int nDefault,
            string lpFileName
            );

        [DllImport("kernel32.dll")]
        private static extern int GetPrivateProfileString(
            string lpAppName,
            string lpKeyName,
            string lpDefault,
            StringBuilder lpReturnedString,
            int nSize,
            string lpFileName
            );

        [DllImport("kernel32.dll")]
        private static extern int WritePrivateProfileString(
            string lpAppName,
            string lpKeyName,
            string lpString,
            string lpFileName
            );

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="aFileName">Ini文件路径</param>
        public IniFile(string aFileName)
        {
            this.m_FileName = aFileName;
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        public IniFile()
        { }

        /// <summary>
        /// [扩展]读Int数值
        /// </summary>
        /// <param name="section">节</param>
        /// <param name="name">键</param>
        /// <param name="def">默认值</param>
        /// <returns></returns>
        public int ReadInt(string section, string name, int def)
        {
            return GetPrivateProfileInt(section, name, def, this.m_FileName);
        }

        /// <summary>
        /// [扩展]读取string字符串
        /// </summary>
        /// <param name="section">节</param>
        /// <param name="name">键</param>
        /// <param name="def">默认值</param>
        /// <returns></returns>
        public string ReadString(string section, string name, string def)
        {
            StringBuilder vRetSb = new StringBuilder(2048);
            GetPrivateProfileString(section, name, def, vRetSb, 2048, this.m_FileName);
            return vRetSb.ToString();
        }

        /// <summary>
        /// [扩展]写入Int数值,如果不存在 节-键,则会自动创建
        /// </summary>
        /// <param name="section">节</param>
        /// <param name="name">键</param>
        /// <param name="Ival">写入值</param>
        public void WriteInt(string section, string name, int Ival)
        {

            WritePrivateProfileString(section, name, Ival.ToString(), this.m_FileName);
        }

        /// <summary>
        /// [扩展]写入String字符串,如果不存在 节-键,则会自动创建
        /// </summary>
        /// <param name="section">节</param>
        /// <param name="name">键</param>
        /// <param name="strVal">写入值</param>
        public void WriteString(string section, string name, string strVal)
        {
            WritePrivateProfileString(section, name, strVal, this.m_FileName);
        }

        /// <summary>
        /// 删除指定的 节
        /// </summary>
        /// <param name="section"></param>
        public void DeleteSection(string section)
        {
            WritePrivateProfileString(section, null, null, this.m_FileName);
        }

        /// <summary>
        /// 删除全部 节
        /// </summary>
        public void DeleteAllSection()
        {
            WritePrivateProfileString(null, null, null, this.m_FileName);
        }

        /// <summary>
        /// 读取指定 节-键 的值
        /// </summary>
        /// <param name="section"></param>
        /// <param name="name"></param>
        /// <returns></returns>
        public string IniReadValue(string section, string name)
        {
            StringBuilder strSb = new StringBuilder(256);
            GetPrivateProfileString(section, name, "", strSb, 256, this.m_FileName);
            return strSb.ToString();
        }

        /// <summary>
        /// 写入指定值,如果不存在 节-键,则会自动创建
        /// </summary>
        /// <param name="section"></param>
        /// <param name="name"></param>
        /// <param name="value"></param>
        public void IniWriteValue(string section, string name, string value)
        {
            WritePrivateProfileString(section, name, value, this.m_FileName);
        }
    }
}

阅读全文 →

C# ini配置文件读写

加载中……