• Stars
    star
    710
  • Rank 63,306 (Top 2 %)
  • Language
    Python
  • Created over 12 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

利用 Python 的 Socket 端口转发,用于远程维护

rtcp.py

简介

  • 利用 Python 的 Socket 端口转发,用于远程维护
  • 如果连接不到远程,会 sleep 36s,最多尝试 200 次(即两小时)

用法

  • ./rtcp.py stream1 stream2
  • stream 为:l:port 或 c:host:port
  • l:port 表示监听指定的本地端口
  • c:host:port 表示监听远程指定的端口

使用场景

A 服务器在内网,公网无法直接访问这台服务器,但是 A 服务器可以联网访问公网的 B 服务器(假设 IP 为 222.2.2.2)

我们也可以访问公网的 B 服务器。我们的目标是访问 A 服务器的 22 端口。那么可以这样:

  • 在 B 服务器上运行:./rtcp.py l:10001 l:10002

    • 表示在本地监听了 10001 与 10002 两个端口,这样,这两个端口就可以互相传输数据了
  • 在 A 服务器上运行:./rtcp.py c:localhost:22 c:222.2.2.2:10001

    • 表示连接本地的 22 端口与 B 服务器的 10001 端口,这两个端口也可以互相传输数据了
  • 然后我们就可以这样来访问 A 服务器的 22 端口了:ssh -p 10002 222.2.2.2

    • 原理很简单,这个命令执行后,B 服务器的 10002 端口接收到的任何数据都会传给 10001 端口
    • 此时,A 服务器是连接了 B 服务器的 10001 端口的,数据就会传给 A 服务器,最终进入 A 服务器的 22 端口

贡献者

  • watercloud
  • zd
  • kun
  • Knownsec R&D Team

More Repositories

1

404StarLink

404StarLink - 推荐优质、有意义、有趣、坚持维护的安全开源项目
8,004
star
2

KCon

KCon is a famous Hacker Con powered by Knownsec Team.
JavaScript
4,377
star
3

pocsuite3

pocsuite3 is an open-sourced remote vulnerability testing framework developed by the Knownsec 404 Team.
Python
3,598
star
4

ksubdomain

无状态子域名爆破工具
Go
2,182
star
5

Pocsuite

This project has stopped to maintenance, please to https://github.com/knownsec/pocsuite3 project.
Python
1,829
star
6

shellcodeloader

shellcodeloader
C++
1,634
star
7

Kunyu

Kunyu, more efficient corporate asset collection
Python
1,003
star
8

404StarLink-Project

Focus on promoting the evolution of tools in different aspects of security research.专注于推动安全研究各个领域工具化.(项目收录逐步迁移至 https://github.com/knownsec/404StarLink)
803
star
9

RD_Checklist

知道创宇研发技能表
Python
776
star
10

ZoomEye-python

ZoomEye-python: The official Python library and CLI by Knownsec 404 Team.
Python
528
star
11

gsm

使用树莓派配合硬件来进行短信转发
Go
342
star
12

LSpider

LSpider 一个为被动扫描器定制的前端爬虫
Python
342
star
13

wam

Web App Monitor
JavaScript
228
star
14

Ethereum-Smart-Contracts-Security-CheckList

Ethereum Smart Contracts Security CheckList From Knownsec 404 Team
155
star
15

VxPwn

VxWorks漏洞挖掘相关
Python
151
star
16

PortForward

The port forwarding tool developed by Golang solves the problem that the internal and external networks cannot communicate in certain scenarios
Go
130
star
17

ct

简单易用的域名爆破工具
Rust
100
star
18

Zoomeye-Tools

Zoomeye Tools是配合Zoomeye使用的Chrome插件
JavaScript
42
star
19

Decrypt-ransomware

Python
37
star
20

Minitools-bin_extractor

A simple script for quickly mining sensitive information in binary files.
Python
29
star
21

LBot

A simple xss bot template
Python
23
star
22

ZoomeyeGPT

JavaScript
21
star
23

404-Team-ShowCase

19
star
24

Minitools-cidrgen

cidrgen is based on cidr's subnet IP list generator
Go
16
star
25

Minitools-ipstatistics

ipstatistics is a script based on the ipip library that is used to quickly filter the ip list.
Python
14
star
26

workin

workin tornado
JavaScript
14
star
27

Minitools-CookieTest

A script used to quickly test APIs or required parameters and cookies for a certain request.
Python
10
star
28

helloworld

一些经典的笔试题目,进入知道创宇的 Hello World!
2
star