请兄弟们求救!十万火急!(关于我做的系统被人下载了的事实的处理)

hubinasm 2003-11-14 02:07:51
今天偶然发现我做的物流系统在网络上到处都是。
比如:
http://www.17t8.com/soft/5887.htm
我看了一下,大概是2003年3月份被黑客偷的,因为当时我们公司上网的服务器没什么安全性而言,而我当时又把系统放在了服务器上。

现在请兄弟们帮我看一下代码哪里还需要改进的地方。很多地方我都改了。每提出一个问题,我给50分,另开帖送分。你们可以到google上搜索“物流管理系统 下载”关键字。

一定重谢!
我需要代码再做一些处理才能加强公司系统的安全性。

兄弟们,帮我!
...全文
72 21 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
21 条回复
切换为时间正序
请发表友善的回复…
发表回复
hamier_hu 2003-11-20
  • 打赏
  • 举报
回复
大家帮看看,gz
tuoshi 2003-11-16
  • 打赏
  • 举报
回复
Jaron就是强啊,呵呵,帮你顶一个!~~
helloclm 2003-11-16
  • 打赏
  • 举报
回复
好东西
楼上的大侠不要急
没办法帮你,只能帮你顶了
hubinasm 2003-11-14
  • 打赏
  • 举报
回复
怎么没人帮我看啊?我晕
Jaron 2003-11-14
  • 打赏
  • 举报
回复
或者用最简单的方法获得服务器IP
引用 Microsoft Active Server Pages Object Library

Set Context = PassedScriptingContext
Set Application = Context.Application
Set Request = Context.Request
Set Response = Context.Response
Set Server = Context.Server
Set Session = Context.Session

Request.ServerVariables("REMOTE_HOST") 就是服务器的IP地址了。




Jaron 2003-11-14
  • 打赏
  • 举报
回复
获取IP地址,引用 Winsock
Option Explicit
Public MSWSK As New MSWinsockLib.Winsock
Public Function GetLocalIP() As String
GetLocalIP = MSWSK.LocalIP
End Function

Public Function GetLocalHostName()
GetLocalHostName = MSWSK.LocalHostName
End Function

Public Function GetLocalPort()
GetLocalPort = MSWSK.LocalPort
End Function

Public Function GetRemoteHostIP() As String
GetRemoteHostIP = MSWSK.RemoteHostIP
End Function

Public Function GetRemoteHostName()
GetRemoteHostName = MSWSK.RemoteHost
End Function

Public Function GetRemotePort()
GetRemotePort = MSWSK.RemotePort
End Function
Jaron 2003-11-14
  • 打赏
  • 举报
回复
Option Explicit

Private Const NCBASTAT = &H33
Private Const NCBNAMSZ = 16
Private Const HEAP_ZERO_MEMORY = &H8
Private Const HEAP_GENERATE_EXCEPTIONS = &H4
Private Const NCBRESET = &H32

Private Type NCB
ncb_command As Byte 'Integer
ncb_retcode As Byte 'Integer
ncb_lsn As Byte 'Integer
ncb_num As Byte ' Integer
ncb_buffer As Long 'String
ncb_length As Integer
ncb_callname As String * NCBNAMSZ
ncb_name As String * NCBNAMSZ
ncb_rto As Byte 'Integer
ncb_sto As Byte ' Integer
ncb_post As Long
ncb_lana_num As Byte 'Integer
ncb_cmd_cplt As Byte 'Integer
ncb_reserve(9) As Byte ' Reserved, must be 0
ncb_event As Long
End Type
Private Type ADAPTER_STATUS
adapter_address(5) As Byte 'As String * 6
rev_major As Byte 'Integer
reserved0 As Byte 'Integer
adapter_type As Byte 'Integer
rev_minor As Byte 'Integer
duration As Integer
frmr_recv As Integer
frmr_xmit As Integer
iframe_recv_err As Integer
xmit_aborts As Integer
xmit_success As Long
recv_success As Long
iframe_xmit_err As Integer
recv_buff_unavail As Integer
t1_timeouts As Integer
ti_timeouts As Integer
Reserved1 As Long
free_ncbs As Integer
max_cfg_ncbs As Integer
max_ncbs As Integer
xmit_buf_unavail As Integer
max_dgram_size As Integer
pending_sess As Integer
max_cfg_sess As Integer
max_sess As Integer
max_sess_pkt_size As Integer
name_count As Integer
End Type
Private Type NAME_BUFFER
name As String * NCBNAMSZ
name_num As Integer
name_flags As Integer
End Type
Private Type ASTAT
adapt As ADAPTER_STATUS
NameBuff(30) As NAME_BUFFER
End Type

Private Declare Function Netbios Lib "netapi32.dll" _
(pncb As NCB) As Byte
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" ( _
hpvDest As Any, ByVal hpvSource As Long, ByVal cbCopy As Long)
Private Declare Function GetProcessHeap Lib "kernel32" () As Long
Private Declare Function HeapAlloc Lib "kernel32" _
(ByVal hHeap As Long, ByVal dwFlags As Long, _
ByVal dwBytes As Long) As Long
Private Declare Function HeapFree Lib "kernel32" (ByVal hHeap As Long, _
ByVal dwFlags As Long, lpMem As Any) As Long

Public Function GetMACAddress(sIP As String) As String
Dim sRtn As String
Dim myNcb As NCB
Dim bRet As Byte

Dim aIP() As String
Dim X As Long
Dim nIP As String

If InStr(sIP, ".") = 0 Then
GetMACAddress = "Invaild IP Address."
Exit Function
End If

aIP = Split(sIP, ".", -1, vbTextCompare)
If UBound(aIP()) <> 3 Then
GetMACAddress = "Invaild IP Address."
Exit Function
End If

For X = 0 To UBound(aIP())
If Len(aIP(X)) > 3 Then
GetMACAddress = "Invaild IP Address"
Exit Function
End If

If IsNumeric(aIP(X)) = False Then
GetMACAddress = "Invaild IP Address"
Exit Function
End If

If InStr(aIP(X), ",") <> 0 Then
GetMACAddress = "Invaild IP Address"
Exit Function
End If

If CLng(aIP(X)) > 255 Then
GetMACAddress = "Invaild IP Address"
Exit Function
End If

If nIP = "" Then
nIP = String(3 - Len(aIP(X)), "0") & aIP(X)
Else
nIP = nIP & "." & String(3 - Len(aIP(X)), "0") & aIP(X)
End If
Next

sRtn = ""
myNcb.ncb_command = NCBRESET
bRet = Netbios(myNcb)
myNcb.ncb_command = NCBASTAT
myNcb.ncb_lana_num = 0
myNcb.ncb_callname = nIP & Chr(0)

Dim myASTAT As ASTAT, tempASTAT As ASTAT
Dim pASTAT As Long
myNcb.ncb_length = Len(myASTAT)

pASTAT = HeapAlloc(GetProcessHeap(), HEAP_GENERATE_EXCEPTIONS Or HEAP_ZERO_MEMORY, myNcb.ncb_length)
If pASTAT = 0 Then
GetMACAddress = "memory allcoation failed!"
Exit Function
End If

myNcb.ncb_buffer = pASTAT
bRet = Netbios(myNcb)

If bRet <> 0 Then
GetMACAddress = "Can not get the MAC Address from IP Address: " & sIP
Exit Function
End If

CopyMemory myASTAT, myNcb.ncb_buffer, Len(myASTAT)

Dim sTemp As String
Dim I As Long
For I = 0 To 5
sTemp = Hex(myASTAT.adapt.adapter_address(I))
If I = 0 Then
sRtn = IIf(Len(sTemp) < 2, "0" & sTemp, sTemp)
Else
sRtn = sRtn & Space(1) & IIf(Len(sTemp) < 2, "0" & sTemp, sTemp)
End If
Next
HeapFree GetProcessHeap(), 0, pASTAT
GetMACAddress = sRtn
End Function


ChinaOk 2003-11-14
  • 打赏
  • 举报
回复
和俄
=========================
欢迎使用 CSDN 论坛助手 ..... [助您多、快、好、爽地上csdn...]
Http://www.ChinaOK.net/csdn/
最新版本:2003年3月2日
zhanghao5188 2003-11-14
  • 打赏
  • 举报
回复
heihei!
hubinasm 2003-11-14
  • 打赏
  • 举报
回复
大家请帮忙下载下来看看代码哪些地方要做修改,先谢谢了。大家多多测试啊,我现在急死了。
hubinasm 2003-11-14
  • 打赏
  • 举报
回复
rexsp(真水无香) (ppcode.com) :这个系统网络上到处都有了,你可以随便下。我又没办法的 我指的是“感觉你像做宣传”这句话。:)
兄弟们,你们去下载一个吧,帮我看看里面哪些地方需要改进(高分重谢),我这边立即改。我现在最重要的是这套系统的安全性。
helloclm 2003-11-14
  • 打赏
  • 举报
回复
能否提供一个关于写dll的教程?越详细越好的.
呵呵,从来没碰过这个.
谢了
超级大笨狼 2003-11-14
  • 打赏
  • 举报
回复
dll放到system32下,ASP程序文件夹里不要有,就是被偷他也不能用。
不过我一般为了方便dll都在ASP程序文件夹留个备份,看来要注意了。以后精品要注意产权。
普通货就无所谓了。
rexsp 2003-11-14
  • 打赏
  • 举报
回复
我不是向你要这个系统,我是向蚊香要检测服务器IP和MAC的方法。。
hubinasm 2003-11-14
  • 打赏
  • 举报
回复
rexsp(真水无香) (ppcode.com):这可是公司的系统啊。我哪敢给别人。

我想求兄弟们帮我看一下哪些地方需要改进的,我疏忽的是当时没对服务器设置什么安全,因为当时服务器好几个老总的密码都是为空的,我也没办法啊。现在我只想补救,看看哪里需要改进的,现在我已经在该了。请兄弟们帮我测试一下啊,我好在系统里加一些我没加的东西。
sjzxj 2003-11-14
  • 打赏
  • 举报
回复
就是:也给我一份。我的:zhugehongtu@yahoo.com.cn或nihao2002327@sina.com
damboo 2003-11-14
  • 打赏
  • 举报
回复
用asp2dll或者自己写组件
这样可以保护源代码
rexsp 2003-11-14
  • 打赏
  • 举报
回复
TO jarron  能否将  Activex DLL,判断服务器IP或MAC是不是你的合法用户 共享一下,偶研究一下。。

kelvinyu@benq.com

谢谢。
rexsp 2003-11-14
  • 打赏
  • 举报
回复
感觉你像做宣传

不过,建议你换版本吧,不然吼吼。。
Jaron 2003-11-14
  • 打赏
  • 举报
回复
如果有需要帮助的,偶可以帮你哈。
加载更多回复(1)

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧