📄 vwftc01.h
字号:
/*vwftc01 Plain VDK ApplicationMain unit header file: vwftc01.h*/#ifndef _vwftc01_main_form_h_#define _vwftc01_main_form_h_#ifdef HAVE_CONFIG_H#include <config.h>#endif// vdk support#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <netinet/in.h>#include <arpa/inet.h>#include <netdb.h>#include <sys/time.h>#include <signal.h>#include <curses.h>#include <dirent.h>#include <sys/stat.h>#include <string.h>#include <sys/types.h>#include <sys/socket.h>#include <fstream.h> #include <time.h>#include "locale.h"#include <vdk/vdk.h>#include <vdk/FileDialog.h>#include <vdk/vdkfileicondlg.h>#include <vdk/vdkarray.h>#include "vdkthread.h"#include "vtdlul.h"#include "vtft.h"#define MYSIGNAL (user_signal+1)#define MAX_ADDR 36#define MAX_COL 5#define KEYPOS 0// yet another address program !typedef struct { char *items[MAX_COL];} ynad;typedef VDKArray<Tuple> TupleArray; typedef VDKValueList<Tuple> TupleList; //typedef VDKValueListIterator<Tuple> TupleListIterator;typedef VDKArray<VDKObject*> VDKObjectArray;typedef VDKArray<int> VDKIntArray;typedef VDKArray<int> IntArray;/*char *titles[MAX_COL] = { "Last name","First name","Address","City","ZIP"};*/// Vwftc01 FORM CLASSclass Vwftc01Form: public VDKForm{// gui object declarationsprivate:// gui object declarations void GUISetup(void); bool MySignalCallback(VDKObject* sender);private: int isigs; int sockfd; gchar* hostname; gint port; int socks_port; gchar* pstrsend; gchar buffer[20000]; gchar strbuf[20000]; gchar strcode[20000]; guchar strfibuf[20000]; gchar strname[256]; gchar strtmp[10240]; gchar strboundary[128]; gchar strinfo[128]; gchar strpath[4096]; gchar strdlpath[4096]; gchar strfilename[4096]; char strhost[128]; guint n; ifstream fhpost; ofstream fileDownload; int icounts; int istrlens; int iups; VDKObject *myobject; VDKThread* obcom; VDKThread obtest; VDKMutex mymutex; char strthtmp[1024]; int isize; IntArray iaSelections; char hostp[128], portp[10]; unsigned char buf01[512], *expbuf, *p; int i, j, lport; int sock; int bruteforce, owned, progress; u_long retaddr; struct sockaddr_in soin, from; struct hostent *phostent; struct stat mystat; struct tm *pmytm; int ibTimer; Tuple tuTmp,*ptuTmp; TupleList tlDir,tlFile; TupleArray taDir,taFile; int iLocalListMaxRow; int iRemoteListMaxRow; int iDirs,iFiles; int iLoop01; char strLdir[4096]; char strRdir[4096]; char* pstrUserName; VDKTimer *timer; CvtDlUl *pvtDlUl; CvtFTC *pvtFTC; CVAString vastrFiles; CVAString vastrFileList; VDKString vstrUlPath; VDKString vstrPath; CVAString vastrDirList; CVAString vastrDirListBuf; CVAString vastrSendPath; CVAString vastrFileName; CVAAString vaastrSendFileName; CVAString vastrLists;public: Vwftc01Form(VDKApplication* app, char* title); ~Vwftc01Form(); void Setup(void); bool OnTimer(VDKObject*); void localdir(); void remotedir();/* gui setup include do not patch below here*/#include <vwftc01_gui.h>};// Vwftc01 APPLICATION CLASSclass Vwftc01App: public VDKApplication{public:Vwftc01App(int* argc, char** argv);~Vwftc01App();void Setup(void);};#endif// do not remove this mark: #!#// end of file:vwftc01.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -