search
HomeBackend DevelopmentPHP TutorialLearn how to get the client IP from brushing tickets, brushing client IP_PHP tutorial

Learn how to get the client IP from ticket swiping, ticket swiping client ip

My personal blog, source address: http://www.woniubi.cn/get_client_ip /

Two weeks ago, I helped a friend’s relative’s child to collect tickets. Who makes us programmers? During this process, I have also encountered problems such as reinstalling the system, removing dust, shopping on Taobao, stealing QQ, downloading movies, why a certain software cannot be used, etc. If you say no, they will say that your computer skills are very good. No problem can be solved.

Brushing tickets is divided into various restrictions, registered users, verification codes, and IP restrictions. This vote brushing website, not this voting website, has IP restrictions. If we want to break the limit, we need to understand how to obtain the user's IP.

1:getenv('HTTP_X_FORWARDED_FOR')
2:getenv('HTTP_CLIENT_IP')
3:getenv('REMOTE_ADDR')

HTTP_X_FORWARDED_FOR

This is obtained from the http header, and its format is A ip, B ip, C ip. There are two reasons why this happens

The user first uses A IP. Each time a layer of proxy is added, this header will add one more IP at the end, separated by commas, and finally reach the real web container. As long as the information is obtained from the header, it can be forged. Therefore, the A IP used in this case may not be the user's real IP. So in our case, we can only regard the IP connected to the load balancer as the user's real IP. At least this data is correct. But this IP may be the user's proxy IP, not the user's real IP. But this situation is at least better than the user's fake IP.

HTTP_CLIENT_IP

This is also obtained from the header. It was originally intended to record the user’s real IP, but it is rarely used.

REMOTE_ADDR

This is the IP to obtain the connection. Only small websites use this method, which directly exposes the data. The site is a single point without any load balancing. If the upper layer uses pxory, this data is the IP of the proxy.

What I did evil was to directly forge the x-forwarder-for data and then deceive them. However, within a few days, this vulnerability was discovered, and then I switched to using a proxy to swipe directly.




www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1056842.htmlTechArticleLearn how to obtain the client IP from ticket brushing, ticket brushing client IP My personal blog, source address: http:/ /www.woniubi.cn/get_client_ip/ Two weeks ago, I helped a friend’s relative’s child to collect tickets...
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
了解 TRedis 缓存技术了解 TRedis 缓存技术Jun 19, 2023 pm 08:01 PM

TRedis缓存技术是一种高性能的内存缓存技术,能够提高网站或应用程序的性能和响应速度。在本文中,我们将介绍TRedis缓存技术的基本概念,以及如何在应用程序中使用它。什么是TRedis缓存技术?TRedis是一种内存缓存技术,它可以将经常使用的数据存储在内存中,从而提高访问这些数据的速度。这种技术的主要思想是通过使用内存缓存来减少对数据库或磁盘

了解 ECache 缓存技术了解 ECache 缓存技术Jun 20, 2023 am 08:10 AM

ECache是一种Java缓存框架,提供了一种简单而强大的方法来减少计算机应用的响应时间。它通过将数据存储在内存中,使应用程序能够更快地响应客户端请求,并提高系统吞吐量。在本文中,我们将介绍ECache缓存技术的一些基础知识,包括它的优点、安装和使用方式等。一、ECache的优点提高系统性能:ECache将缓存数据存储在内存中,这意味着应用程序

如何在Win11系统中获得管理员权限如何在Win11系统中获得管理员权限Mar 08, 2024 pm 10:00 PM

在Win11系统中获得管理员权限是非常重要的,因为管理员权限可以让用户在系统中执行各种操作,如安装软件、修改系统设置等。在Win11系统中获得管理员权限可以通过以下几种方法实现:第一种方法是通过用户账户控制设置。在Win11系统中,用户账户控制是一个用来管理用户权限的功能,通过它,用户可以调整自己的权限等级。要获得管理员权限,用户可以进入“设置”界面,选择“

幻兽帕鲁羊毛怎么获得幻兽帕鲁羊毛怎么获得Feb 03, 2024 pm 12:33 PM

幻兽帕中的道具和材料多种多样,其中羊毛是一种重要的资源。羊毛可以用来制作各种道具,但是有些玩家可能不知道如何获取羊毛。下面就给大家介绍一些获取羊毛的方法,希望对大家有所帮助。幻兽帕鲁羊毛获得方法1.帕鲁掉落羊毛可以从多种帕鲁身上获得,包括棉悠悠、米露菲、美露帕、毛掸儿、毛老爹、君王美露帕以及冰帝美露帕等七只帕鲁。在与它们的战斗中,留意羊毛的掉落。2.牧场生产除了通过战斗获取,玩家还可以在牧场中轻松产出羊毛。游戏内工作适应性包含放牧的帕鲁,例如棉悠悠、美路帕这些,通过牧场放牧就可以收获到羊毛。

一目了然:JSP文件打开的方法速览一目了然:JSP文件打开的方法速览Jan 31, 2024 pm 09:28 PM

JSP文件打开方式JSP(JavaServerPages)是一种动态网页技术,它允许程序员在HTML页面中嵌入Java代码。JSP文件是文本文件,其中包含HTML代码、XML标记和Java代码。当JSP文件被请求时,它会被编译成JavaServlet,然后由Web服务器执行。打开JSP文件的方法有几种方法可以打开JSP文件。最简单的方法是使用文本编辑器,

古龙风云录白发烟斗怎么获得古龙风云录白发烟斗怎么获得Feb 29, 2024 pm 01:04 PM

古龙风云录游戏里有很多成就,部分成就是与收集品相关的,当我们遇到孙小红之后,还会触发跟孙白发之间的故事,其中白发烟斗需要拿到这个烟斗才能完成,下面就为大家带来古龙风云录白发烟斗达成方法。古龙风云录白发烟斗达成方法1.这个成就需要注意要在孙小红好感任务未完成第四章结束后。2.孙小红告知爷爷不见了,然后前往洛阳长亭寻找孙白发的下落。3.得知孙白发已经死于上官金虹之手,在地上找到孙白发的烟杆,获得“白发烟斗”。要点:如果孙小红的最后一个任务要是在第四章回到仁义庄正殿前完成,孙白发入庄后就触发不了洛阳城

了解 Redisson 缓存技术了解 Redisson 缓存技术Jun 21, 2023 am 09:54 AM

Redisson是一种基于Redis的Java应用程序缓存解决方案。它提供了许多有用功能,使得在Java应用中使用Redis作为缓存变得更加方便和高效。Redisson提供的缓存功能包括:1.分布式映射(Map):Redisson提供了一些用于创建分布式映射的API。这些映射可以包含键值对、哈希表项或对象,它们可以支持在多个节点之间共

最终幻想7重生智者长杖怎么获得最终幻想7重生智者长杖怎么获得Mar 06, 2024 pm 10:37 PM

很多玩家不知道最终幻想7重生智者长杖怎么获得,首先把主线推到第十章魔晶石猎人的决心,前往义族的村落服务点,在左边会看到一个宝箱,打开宝箱获得智者长杖,具体内容一起来看看这篇最终幻想7重生智者长杖获得方法介绍。最终幻想7重生武器收集攻略最终幻想7重生智者长杖怎么获得答:第十章义族的村落服务点左边宝箱获得。1、跟随主线来到第十章魔晶石猎人的决心。2、来到义族的村落。3、在义族的村落服务点左边找到一个宝箱。4、打开宝箱获得智者长杖。智者长杖武器技能在魔法阵内积累ATB后,会赋予伙伴一定量的ATB。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool