checkxdisplay.c
来自「非常高效的扫描器」· C语言 代码 · 共 33 行
C
33 行
/* Check if a remote display allows us to open it... * if it does, return one, else return 0. * being open means we can sniff keystrokes, etc, etc.. */// this function iz kiddie proof.. if you kno a bit you can uncomment it// and edit the make script with the right include/lib paths.#include <stdio.h>#include <stdlib.h>#include <X11/Xlib.h>int checkXdisplay(char *ip){/*char buff[32], buff2[32];strcpy(buff, (ip - 2));strcat(buff, "\0");sprintf(buff2, "%s:0", ip);#ifdef DEBUGprintf("DEBUG: checkXdisplay: %s\n", ip);#endifif (XOpenDisplay(buff2) != NULL)return 1;*/return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?