SSRF 接收器

news2025/6/4 6:21:19

接收请求

IP.php

<?php
// 定义日志文件路径
$logFile = 'hackip.txt';

// 处理删除请求
if (isset($_POST['delete'])) {
    $ipToDelete = $_POST['ip'];
    $lines = file($logFile, FILE_IGNORE_NEW_LINES);
    $newLines = array();
    
    foreach ($lines as $line) {
        $parts = explode(' | ', $line);
        if ($parts[1] !== $ipToDelete) {
            $newLines[] = $line;
        }
    }
    
    file_put_contents($logFile, implode(PHP_EOL, $newLines));
    header("Location: ".$_SERVER['PHP_SELF']);
    exit;
}

// 记录当前访问者IP
$ipAddress = $_SERVER['REMOTE_ADDR'];
$timestamp = date('Y-m-d H:i:s');
$logEntry = "[$timestamp] | $ipAddress | " . gethostbyaddr($ipAddress);
file_put_contents($logFile, $logEntry.PHP_EOL, FILE_APPEND);
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>// IP_TRACKER v4.2.0 //</title>
    <style>
        :root {
            --hacker-green: #00ff41;
            --matrix-green: #00ff9d;
            --dark-bg: #0d0208;
            --darker-bg: #030303;
        }
        body {
            background-color: var(--dark-bg);
            color: var(--hacker-green);
            font-family: 'Courier New', monospace;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
            line-height: 1.6;
        }
        .scanlines {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                to bottom,
                rgba(0, 255, 65, 0.03) 0%,
                rgba(0, 255, 65, 0.1) 50%,
                rgba(0, 255, 65, 0.03) 100%
            );
            background-size: 100% 4px;
            pointer-events: none;
            z-index: 1000;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            position: relative;
        }
        header {
            border-bottom: 1px solid var(--matrix-green);
            padding-bottom: 10px;
            margin-bottom: 30px;
            text-align: center;
            position: relative;
        }
        h1 {
            font-size: 2.8rem;
            text-shadow: 0 0 10px var(--matrix-green);
            letter-spacing: 3px;
            margin: 20px 0;
            animation: glitch 1s linear infinite;
            position: relative;
        }
        h1::after {
            content: "_";
            animation: blink 1s step-end infinite;
        }
        .status-bar {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
            padding: 10px;
            background-color: rgba(0, 0, 0, 0.5);
            border: 1px solid var(--hacker-green);
        }
        .terminal {
            background-color: rgba(0, 0, 0, 0.7);
            border: 2px solid var(--matrix-green);
            padding: 20px;
            height: 60vh;
            overflow-y: auto;
            margin-bottom: 20px;
            box-shadow: 0 0 20px var(--matrix-green);
            position: relative;
        }
        .terminal::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 30px;
            background: linear-gradient(to bottom, rgba(0,255,65,0.2), transparent);
        }
        .log-entry {
            margin-bottom: 15px;
            padding-left: 20px;
            position: relative;
            border-bottom: 1px dotted rgba(0, 255, 65, 0.3);
            padding-bottom: 10px;
        }
        .log-entry::before {
            content: ">";
            position: absolute;
            left: 0;
            color: var(--matrix-green);
        }
        .ip-address {
            color: var(--matrix-green);
            font-weight: bold;
        }
        .delete-btn {
            background: transparent;
            color: #ff5555;
            border: 1px solid #ff5555;
            padding: 3px 10px;
            margin-left: 15px;
            cursor: pointer;
            transition: all 0.3s;
            font-family: 'Courier New', monospace;
        }
        .delete-btn:hover {
            background: #ff5555;
            color: #000;
            box-shadow: 0 0 10px #ff5555;
        }
        .command-line {
            display: flex;
            align-items: center;
            margin-top: 20px;
        }
        .prompt {
            color: var(--matrix-green);
            margin-right: 10px;
            white-space: nowrap;
        }
        #command {
            background: transparent;
            border: none;
            border-bottom: 1px solid var(--matrix-green);
            color: var(--hacker-green);
            font-family: 'Courier New', monospace;
            width: 100%;
            padding: 5px;
            outline: none;
            flex-grow: 1;
        }
        @keyframes blink {
            50% { opacity: 0; }
        }
        @keyframes glitch {
            0% { text-shadow: 2px 0 0 #ff00ff, -2px 0 0 #00ffff; }
            25% { text-shadow: -2px 0 0 #ff00ff, 2px 0 0 #00ffff; }
            50% { text-shadow: 2px 0 0 #ff00ff, -2px 0 0 #00ffff; }
            75% { text-shadow: -2px 0 0 #ff00ff, 2px 0 0 #00ffff; }
            100% { text-shadow: 2px 0 0 #ff00ff, -2px 0 0 #00ffff; }
        }
        .rain {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: -1;
            pointer-events: none;
            overflow: hidden;
        }
        .rain span {
            position: absolute;
            display: block;
            width: 1px;
            height: 50px;
            background: linear-gradient(to bottom, transparent, var(--matrix-green));
            animation: rain 3s linear infinite;
            opacity: 0.6;
        }
        @keyframes rain {
            0% { transform: translateY(-100px) translateX(-10px); opacity: 0; }
            10% { opacity: 0.6; }
            90% { opacity: 0.6; }
            100% { transform: translateY(100vh) translateX(10px); opacity: 0; }
        }
        .pulse {
            animation: pulse 2s infinite alternate;
        }
        @keyframes pulse {
            from { box-shadow: 0 0 5px var(--matrix-green); }
            to { box-shadow: 0 0 20px var(--matrix-green); }
        }
    </style>
</head>
<body>
    <div class="rain" id="rain"></div>
    <div class="scanlines"></div>
    
    <div class="container">
        <header>
            <h1>▓▓▓ 黑客IP追踪系统 ▓▓▓</h1>
            <div class="status-bar pulse">
                <span>> 系统激活</span>
                <span>> 用户: <?php echo htmlspecialchars(gethostbyaddr($ipAddress)); ?></span>
                <span>> 时间: <?php echo date('H:i:s'); ?></span>
            </div>
        </header>

        <div class="terminal">
            <div class="log-entry">
                <span class="ip-address"><?php echo htmlspecialchars($ipAddress); ?></span> - INITIALIZING CONNECTION...
            </div>
            
            <?php
            if (file_exists($logFile)) {
                $logs = array_reverse(file($logFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES));
                
                if (empty($logs)) {
                    echo '<div class="log-entry">NO RECORDS FOUND...</div>';
                } else {
                    foreach ($logs as $log) {
                        $parts = explode(' | ', $log);
                        if (count($parts) >= 2) {
                            echo '<div class="log-entry">';
                            echo '<span class="ip-address">'.htmlspecialchars($parts[1]).'</span>';
                            echo ' - ACCESSED @ '.htmlspecialchars($parts[0]);
                            if (isset($parts[2])) {
                                echo ' - HOST: '.htmlspecialchars($parts[2]);
                            }
                            echo '<form method="post" style="display:inline;">';
                            echo '<input type="hidden" name="ip" value="'.htmlspecialchars($parts[1]).'">';
                            echo '<button type="submit" name="delete" class="delete-btn">TERMINATE</button>';
                            echo '</form>';
                            echo '</div>';
                        }
                    }
                }
            } else {
                echo '<div class="log-entry">INITIALIZING DATABASE...</div>';
            }
            ?>
        </div>
    </div>

    <script>
        // 创建黑客雨效果
        function createRain() {
            const rain = document.getElementById('rain');
            for (let i = 0; i < 150; i++) {
                const span = document.createElement('span');
                span.style.left = Math.random() * 100 + 'vw';
                span.style.animationDelay = Math.random() * 5 + 's';
                span.style.animationDuration = (Math.random() * 2 + 1.5) + 's';
                rain.appendChild(span);
            }
        }
        
        // 模拟终端输入效果
        document.getElementById('command').addEventListener('keypress', function(e) {
            if (e.key === 'Enter') {
                const command = this.value.trim().toLowerCase();
                if (command.startsWith('delete ')) {
                    const ip = command.substring(7);
                    // 这里可以添加AJAX请求来删除IP
                    alert(`COMMAND EXECUTED: TERMINATE CONNECTION TO ${ip}`);
                } else if (command === 'clear') {
                    document.querySelector('.terminal').innerHTML = '<div class="log-entry">SYSTEM LOG CLEARED</div>';
                } else if (command === 'help') {
                    alert('AVAILABLE COMMANDS:\n\ndelete [IP] - Terminate connection\nscan - Scan network\ntrace [IP] - Trace location\nclear - Clear log');
                } else {
                    alert(`UNRECOGNIZED COMMAND: ${command}`);
                }
                this.value = '';
            }
        });
        
        // 自动滚动到终端底部
        function scrollToBottom() {
            const terminal = document.querySelector('.terminal');
            terminal.scrollTop = terminal.scrollHeight;
        }
        
        // 初始化
        window.onload = function() {
            createRain();
            scrollToBottom();
            
            // 模拟系统启动效果
            setTimeout(() => {
                const terminal = document.querySelector('.terminal');
                const initialEntry = terminal.querySelector('.log-entry');
                if (initialEntry) {
                    initialEntry.innerHTML = `<span class="ip-address">${initialEntry.querySelector('.ip-address').textContent}</span> - CONNECTION ESTABLISHED`;
                }
            }, 1000);
        };
    </script>
</body>
</html>

效果

会把请求的ip记录到hackip.txt文件内

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2396030.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

FastAPI MCP 快速入门教程

目录 什么是 FastAPI MCP&#xff1f;项目设置1. 初始化项目2. 安装依赖3. 项目结构 编写代码创建主应用文件 运行和测试1. 启动服务器2. 使用 MCP Inspector 测试 什么是 FastAPI MCP&#xff1f; FastAPI MCP 是一个将 FastAPI 应用程序转换为 Model Context Protocol (MCP)…

uni-app学习笔记二十一--pages.json中tabBar设置底部菜单项和图标

如果应用是一个多 tab 应用&#xff0c;可以通过 tabBar 配置项指定一级导航栏&#xff0c;以及 tab 切换时显示的对应页。 在 pages.json 中提供 tabBar 配置&#xff0c;不仅仅是为了方便快速开发导航&#xff0c;更重要的是在App和小程序端提升性能。在这两个平台&#xff…

【Redis】基本命令

Redis命令行客户端 现在我们已经启动了Redis服务&#xff0c;下面将介绍如何使用redis - cli连接、操作Redis服务。客户端和服务端的交互过程如图1 - 3所示。 redis - cli可以使用两种方式连接Redis服务器。 第一种是交互式方式&#xff1a;通过redis - cli -h {host} -p {p…

哈希:闭散列的开放定址法

我还是曾经的那个少年 1.概念 通过其要存储的值与存储的位置建立映射关系。 如&#xff1a;基数排序也是运用了哈希开放定址法的的思想。 弊端&#xff1a;仅适用于数据集中的情况 2.开放定址法 问题&#xff1a;按照上述哈希的方式&#xff0c;向集合插入数据为44&#xff…

Unity-QFramework框架学习-MVC、Command、Event、Utility、System、BindableProperty

QFramework QFramework简介 QFramework是一套渐进式、快速开发框架&#xff0c;适用于任何类型的游戏及应用项目&#xff0c;它包含一套开发架构和大量的工具集 QFramework的特性 简洁性&#xff1a;QFramework 强调代码的简洁性和易用性&#xff0c;让开发者能够快速上手&a…

FPGA实现CNN卷积层:高效窗口生成模块设计与验证

我最近在从事一项很有意思的项目&#xff0c;我想在PFGA上部署CNN并实现手写图片的识别。而本篇文章&#xff0c;是我迈出的第一步。具体代码已发布在github上 模块介绍 卷积神经网络&#xff08;CNN)可以分为卷积层、池化层、激活层、全链接层结构&#xff0c;本篇要实现的&…

LeetCode 3068.最大节点价值之和:脑筋急转弯+动态规划(O(1)空间)

【LetMeFly】3068.最大节点价值之和&#xff1a;脑筋急转弯动态规划&#xff08;O(1)空间&#xff09; 力扣题目链接&#xff1a;https://leetcode.cn/problems/find-the-maximum-sum-of-node-values/ 给你一棵 n 个节点的 无向 树&#xff0c;节点从 0 到 n - 1 编号。树以长…

BLIP-2

目录 摘要 Abstract BLIP-2 模型框架 预训练策略 模型优势 应用场景 实验 代码 总结 摘要 BLIP-2 是一种基于冻结的图像编码器和大型语言模型的高效视觉语言预训练模型&#xff0c;由 Salesforce 研究团队提出。它在 BLIP 的基础上进一步优化&#xff0c;通过轻量级…

支持向量机(SVM)例题

对于图中所示的线性可分的20个样本数据&#xff0c;利用支持向量机进行预测分类&#xff0c;有三个支持向量 A ( 0 , 2 ) A\left(0, 2\right) A(0,2)、 B ( 2 , 0 ) B\left(2, 0\right) B(2,0) 和 C ( − 1 , − 1 ) C\left(-1, -1\right) C(−1,−1)。 求支持向量机分类器的线…

SQL中各个子句的执行顺序

select、from、 join、where、order by、group by、having、limit 解释 1) FROM (确定数据源) 查询的执行首先从FROM子句开始&#xff0c;确定数据的来源(表、视图、连接等)。 2) JOIN (如果有JOIN操作) 在FROM子句之后&#xff0c;SQL引擎会执行连接操作(JOIN)&#xff0c…

本地部署消息代理软件 RabbitMQ 并实现外部访问( Windows 版本 )

RabbitMQ 是由 Erlang 语言开发的 消息中间件&#xff0c;是一种应用程序之间的通信方法。支持多种编程和语言和协议发展&#xff0c;用于实现分布式系统的可靠消息传递和异步通信等方面。 本文将详细介绍如何在 Windows 系统本地部署 RabbitMQ 并结合路由侠实现外网访问本…

基于微信小程序的垃圾分类系统

博主介绍&#xff1a;java高级开发&#xff0c;从事互联网行业六年&#xff0c;熟悉各种主流语言&#xff0c;精通java、python、php、爬虫、web开发&#xff0c;已经做了六年的毕业设计程序开发&#xff0c;开发过上千套毕业设计程序&#xff0c;没有什么华丽的语言&#xff0…

流媒体基础解析:视频清晰度的关键因素

在视频处理的过程中&#xff0c;编码解码及码率是影响视频清晰度的关键因素。今天&#xff0c;我们将深入探讨这些概念&#xff0c;并解析它们如何共同作用于视频质量。 编码解码概述 编码&#xff0c;简单来说&#xff0c;就是压缩。视频编码的目的是将原始视频数据压缩成较…

grid网格布局

使用flex布局的痛点 如果使用justify-content: space-between;让子元素两端对齐&#xff0c;自动分配中间间距&#xff0c;假设一行4个&#xff0c;如果每一行都是4的倍数那没任何问题&#xff0c;但如果最后一行是2、3个的时候就会出现下面的状况&#xff1a; /* flex布局 两…

Vehicle HAL(2)--Vehicle HAL 的启动

目录 1. VehicleService-main 函数分析 2. 构建EmulatedVehicleHal 2.1 EmulatedVehicleHal::EmulatedVehicleHal(xxx) 2.2 EmulatedVehicleHal::initStaticConfig() 2.3 EmulatedVehicleHal::onPropertyValue() 3. 构建VehicleEmulator 4. 构建VehicleHalManager (1)初…

【C语言】详解 指针

前言&#xff1a; 在学习指针前&#xff0c;通过比喻的方法&#xff0c;让大家知道指针的作用。 想象一下&#xff0c;你在一栋巨大的图书馆里找一本书。如果没有书架编号和目录&#xff0c;这几乎是不可能完成的任务。 在 C 语言中&#xff0c;指针就像是图书馆的索引系统&…

RabbitMQ仲裁队列高可用架构解析

#作者&#xff1a;闫乾苓 文章目录 概述工作原理1.节点之间的交互2.消息复制3.共识机制4.选举领导者5.消息持久化6.自动故障转移 集群环境节点管理仲裁队列增加集群节点重新平衡仲裁队列leader所在节点仲裁队列减少集群节点 副本管理add_member 在给定节点上添加仲裁队列成员&…

Apache Kafka 实现原理深度解析:生产、存储与消费全流程

Apache Kafka 实现原理深度解析&#xff1a;生产、存储与消费全流程 引言 Apache Kafka 作为分布式流处理平台的核心&#xff0c;其高吞吐、低延迟、持久化存储的设计使其成为现代数据管道的事实标准。本文将从消息生产、持久化存储、消息消费三个阶段拆解 Kafka 的核心实现原…

Python 训练营打卡 Day 41

简单CNN 一、数据预处理 在图像数据预处理环节&#xff0c;为提升数据多样性&#xff0c;可采用数据增强&#xff08;数据增广&#xff09;策略。该策略通常不改变单次训练的样本总数&#xff0c;而是通过对现有图像进行多样化变换&#xff0c;使每次训练输入的样本呈现更丰富…

leetcode付费题 353. 贪吃蛇游戏解题思路

贪吃蛇游戏试玩:https://patorjk.com/games/snake/ 问题描述 设计一个贪吃蛇游戏,要求实现以下功能: 初始化游戏:给定网格宽度、高度和食物位置序列移动操作:根据指令(上、下、左、右)移动蛇头规则: 蛇头碰到边界或自身身体时游戏结束(返回-1)吃到食物时蛇身长度增加…