电子商务安全作业.docx

上传人:b****6 文档编号:15898123 上传时间:2023-07-08 格式:DOCX 页数:14 大小:99.48KB
下载 相关 举报
电子商务安全作业.docx_第1页
第1页 / 共14页
电子商务安全作业.docx_第2页
第2页 / 共14页
电子商务安全作业.docx_第3页
第3页 / 共14页
电子商务安全作业.docx_第4页
第4页 / 共14页
电子商务安全作业.docx_第5页
第5页 / 共14页
电子商务安全作业.docx_第6页
第6页 / 共14页
电子商务安全作业.docx_第7页
第7页 / 共14页
电子商务安全作业.docx_第8页
第8页 / 共14页
电子商务安全作业.docx_第9页
第9页 / 共14页
电子商务安全作业.docx_第10页
第10页 / 共14页
电子商务安全作业.docx_第11页
第11页 / 共14页
电子商务安全作业.docx_第12页
第12页 / 共14页
电子商务安全作业.docx_第13页
第13页 / 共14页
电子商务安全作业.docx_第14页
第14页 / 共14页
亲,该文档总共14页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

电子商务安全作业.docx

《电子商务安全作业.docx》由会员分享,可在线阅读,更多相关《电子商务安全作业.docx(14页珍藏版)》请在冰点文库上搜索。

电子商务安全作业.docx

电子商务安全作业

电子商务安全第一次作业

组员:

孙怡、陈君

一、加密算法:

#include

#include

voidmain()

{FILE*fp1,*fp2;

charfn1[20],fn2[20];

charc;

intd;

printf("请输入原文件的文件名:

");

scanf("%s",fn1);

printf("请输入目标文件的文件名:

");

scanf("%s",fn2);

printf("请输入密码:

");

scanf("%s",&d);

fp1=fopen(fn1,"r");

fp2=fopen(fn2,"w");

if(fp1==NULL||fp2==NULL)

{printf("openerror!

\n");

exit(0);}

while(!

feof(fp1))

{fscanf(fp1,"%c",&c);

if((c>='a')&&(c<='z'))

{

c=(c-'a'+1)%26+'a';

c=c^d;

}

if((c>='A')&&(c<='Z'))

{

c=(c-'A'+1)%26+'A';

c=c^d;

}

fprintf(fp2,"%c",c);

}

fclose(fp1);

fclose(fp2);

}

原始文件:

加密后的文件:

二、windows下的网络命令:

1、netstat

C:

\DocumentsandSettings\xxxy>netstat

ActiveConnections

ProtoLocalAddressForeignAddressState

TCPb11:

1032172.16.1.254:

10403ESTABLISHED

TCPb11:

1120220.181.124.110:

httpCLOSE_WAIT

TCPb11:

1121220.181.124.3:

httpCLOSE_WAIT

TCPb11:

1124220.181.124.18:

httpCLOSE_WAIT

TCPb11:

1168220.181.124.28:

8080CLOSE_WAIT

TCPb11:

1169220.181.124.35:

httpCLOSE_WAIT

TCPb11:

1240122.226.213.100:

httpCLOSE_WAIT

TCPb11:

1464115.198.32.252:

8090ESTABLISHED

TCPb11:

1465183.136.133.12:

httpESTABLISHED

TCPb11:

1466183.136.133.13:

httpESTABLISHED

TCPb11:

1467183.136.133.12:

httpCLOSE_WAIT

TCPb11:

1469183.136.133.13:

httpESTABLISHED

TCPb11:

1470183.136.133.13:

httpESTABLISHED

C:

\DocumentsandSettings\xxxy>

2、nbtstat

C:

\DocumentsandSettings\xxxy>nbtstat/a172.16.2.111

本地连接:

NodeIpAddress:

[172.16.2.111]ScopeId:

[]

NetBIOSRemoteMachineNameTable

NameTypeStatus

---------------------------------------------

B11<00>UNIQUERegistered

WORKGROUP<00>GROUPRegistered

B11<20>UNIQUERegistered

MACAddress=44-37-E6-0D-D5-F6

C:

\DocumentsandSettings\xxxy>

3、ping

C:

\DocumentsandSettings\xxxy>ping172.16.2.111

Pinging172.16.2.111with32bytesofdata:

Replyfrom172.16.2.111:

bytes=32time<1msTTL=128

Replyfrom172.16.2.111:

bytes=32time<1msTTL=128

Replyfrom172.16.2.111:

bytes=32time<1msTTL=128

Replyfrom172.16.2.111:

bytes=32time<1msTTL=128

Pingstatisticsfor172.16.2.111:

Packets:

Sent=4,Received=4,Lost=0(0%loss),

Approximateroundtriptimesinmilli-seconds:

Minimum=0ms,Maximum=0ms,Average=0ms

C:

\DocumentsandSettings\xxxy>

4、arp

C:

\DocumentsandSettings\xxxy>arp-a

Interface:

172.16.2.111---0x2

InternetAddressPhysicalAddressType

172.16.1.100-21-45-5c-02-10dynamic

172.16.1.25400-21-97-61-a3-60dynamic

172.16.3.25300-1b-b9-a3-eb-f7dynamic

172.16.5.25408-10-75-d8-e0-24dynamic

172.16.9.100c8-0a-a9-ff-f1-48dynamic

172.16.9.12300-16-76-d3-7c-ffdynamic

172.16.9.15544-37-e6-25-47-1cdynamic

5、Tracert

C:

\DocumentsandSettings\xxxy>Tracert172.16.2.111

Tracingroutetob11[172.16.2.111]

overamaximumof30hops:

1<1ms<1ms<1msb11[172.16.2.111]

Tracecomplete.

6、Winipcfg

用于显示用户所在主机内部IP协议的配置信息。

这个命令只在WIN98或以下版本适用,以后的可以用ipconfig。

7、ipconfig

C:

\DocumentsandSettings\xxxy>ipconfig

WindowsIPConfiguration

Ethernetadapter本地连接:

Connection-specificDNSSuffix.:

IPAddress............:

172.16.2.111

SubnetMask...........:

255.255.240.0

DefaultGateway.........:

172.16.1.1

C:

\DocumentsandSettings\xxxy>

8、ftp

文件传输软件的使用格式为:

FTP,若连接成功,系统将提示用户输入用户名及口令:

LOGIN:

(输入合法的用户名或者“anonymous”):

PASSWORD:

(输入合法的口令,若以“anonymous”方式登录,一般输入自己的邮箱):

9、Telnet

Telnet是常用的远程登录手段,有两种操作模式:

:

Telnet命令模式和Telnet会话模式。

连接到Telnet服务器后,Telnet客户端会自动进入Telnet会话模式,此模式最常见。

10、net

C:

\DocumentsandSettings\xxxy>net

此命令的语法是:

NET[ACCOUNTS|COMPUTER|CONFIG|CONTINUE|FILE|GROUP|HELP|

HELPMSG|LOCALGROUP|NAME|PAUSE|PRINT|SEND|SESSION|

SHARE|START|STATISTICS|STOP|TIME|USE|USER|VIEW]

C:

\DocumentsandSettings\xxxy>

(1)netview

C:

\DocumentsandSettings\xxxy>netview

服务器名称注释

------------------------------------------------------

\\B11

\\B15

\\B18

\\B25

\\B3

\\B35

\\OPENMASSERVER

\\PC-201212121013

\\SHUAKA

\\STUD9STU7B0B3D

\\ZJJY-AE0CCD6486

命令成功完成。

C:

\DocumentsandSettings\xxxy>

(2)netuser

C:

\DocumentsandSettings\xxxy>netuser

\\b11的用户帐户

------------------------------------------------------------

AdministratorASPNETGuest

HelpAssistantIUSR_b1IWAM_b1

SUPPORT_388945a0VUSR_b1xxxy

命令成功完成。

(3)netuse

C:

\DocumentsandSettings\xxxy>netuse

会记录新的网络连接。

列表是空的。

C:

\DocumentsandSettings\xxxy>

(4)nettime

C:

\DocumentsandSettings\xxxy>nettime\\127.0.0.1

\\127.0.0.1的当前时间是2012/3/11下午01:

17

命令成功完成。

C:

\DocumentsandSettings\xxxy>

(5)netstart

C:

\DocumentsandSettings\xxxy>netstart

已经启动以下Windows服务:

3d-ioLicenseServerv2.0

ApplicationLayerGatewayService

AutodeskLicensingService

BackgroundIntelligentTransferService

COM+EventSystem

CryptographicServices

DCOMServerProcessLauncher

DHCPClient

DNSClient

EventLog

HASPLicenseManager

HIDInputService

LogicalDiskManager

mentalray3.8SatelliteforAutodesk3dsMax2011

NetworkConnections

NetworkLocationAwareness(NLA)

NTLMSecuritySupportProvider

PlugandPlay

PrintSpooler

ProtectedStorage

RemoteAccessConnectionManager

RemoteProcedureCall(RPC)

samservice

SecurityAccountsManager

SecurityCenter

Server

ShellHardwareDetection

SQLServerFullTextSearch(MSSQLSERVER)

SQLServerIntegrationServices

SSDPDiscoveryService

SystemEventNotification

SystemRestoreService

TCP/IPNetBIOSHelper

Telephony

TerminalServices

Themes

WindowsAudio

WindowsFirewall/InternetConnectionSharing(ICS)

WindowsInstaller

WindowsManagementInstrumentation

WindowsTime

WirelessZeroConfiguration

Workstation

XLServicePlatform

主动防御

命令成功完成。

C:

\DocumentsandSettings\xxxy>

(6)netpause

C:

\DocumentsandSettings\xxxy>netpauseTelephony

Telephony服务已成功暂停。

(7)netcontinue

C:

\DocumentsandSettings\xxxy>netcontinueTelephony

Telephony服务已成功继续运行。

(8)netstop

C:

\DocumentsandSettings\xxxy>netstopsamservice

samservice服务正在停止.

samservice服务已成功停止。

(9)netshare

C:

\DocumentsandSettings\xxxy>netshare

共享名资源注释

------------------------------------------------------------------------

D$D:

\默认共享

F$F:

\默认共享

ADMIN$C:

\WINDOWS远程管理

C$C:

\默认共享

IPC$远程IPC

命令成功完成。

C:

\DocumentsandSettings\xxxy>

(10)netsession

C:

\DocumentsandSettings\xxxy>netsession

列表是空的。

C:

\DocumentsandSettings\xxxy>

(11)netsend

C:

\DocumentsandSettings\xxxy>netsend61.164.38.194hello!

发送消息到61.164.38.194的时候出错。

网络上找不到此消息别名。

请键入NETHELPMSG2273以获得更多的帮助。

(12)netlocalgroup

C:

\DocumentsandSettings\xxxy>netlocalgroup

\\B11的别名

-------------------------------------------------------------

*Administrators

*BackupOperators

*DebuggerUsers

*Guests

*HelpServicesGroup

*NC_S_ISLCK

*NetworkConfigurationOperators

*PowerUsers

*RemoteDesktopUsers

*Replicator

*SQLServer2005DTSUser$b1

*SQLServer2005MSFTEUser$b1$MSSQLSERVER

*SQLServer2005MSOLAPUser$b1$MSSQLSERVER

*SQLServer2005MSSQLServerADHelperUser$b1

*SQLServer2005MSSQLUser$b1$MSSQLSERVER

*SQLServer2005NotificationServicesUser$b1

*SQLServer2005ReportingServicesWebServiceUser$b1$MSSQLSERVER

*SQLServer2005ReportServerUser$b1$MSSQLSERVER

*SQLServer2005SQLAgentUser$b1$MSSQLSERVER

*SQLServer2005SQLBrowserUser$b1

*Users

命令成功完成。

C:

\DocumentsandSettings\xxxy>

(13)netgroup

NETGROUP用于添加、显示或修改服务器上的全局组。

在不带参数使用本命令的情况下,它会显示服务器上的组名。

注意此命令只能用于windows域控制器。

其命令格式如下:

NETGROUP[groupname[/COMMENT:

"text"]][/DOMAIN]groupname{/ADD[/COMMENT:

"text"]|/DELETE}[/DOMAIN]groupnameusername[...]{/ADD|/DELETE}[/DOMAIN]

(14)netcomputer:

从域数据库中添加或删除计算机,所有计算机的添加和删除都会转发到主域控制器。

格式:

netcomputer\\computername{/add|/del}

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 解决方案 > 学习计划

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2