- 博客(1)
- 资源 (4)
- 收藏
- 关注
原创 一些低交互蜜罐
本文来源于书本《虚拟蜜罐》低交互蜜罐很有吸引力,即使你没有多少经验,也能很快建立一个蜜罐。这里,Honeyd、Nepenthes等蜜罐相继登场。低交互蜜罐跟高交互蜜罐不一样。低交互是模拟的一个服务,不适合用来检查0day漏洞,但是它可以用来检测已知的漏洞,测量你的网络受攻击的频率。下面来讲:1、欺骗工具包DTKFred Cohen在1998年创作,是最早
2014-03-16 08:08:44 3568
Parallel Collapse Sets of Integers
自己用C语言写的一个并行处理程序,在linux下可以运行,主要是给出一串数字字符串,可以很大,然后计算这些数字的和,最后是一个小于10的数为止。比如,34567,结果是7.如果有意的话可以参考参考。
2012-10-23
代理服务器,软路由的一些资料
1. 用作路由器和代理服务器的机子均使用三网卡,其中一张已连接到实验室局域网,该网卡在实验资料、软件、指导说明下载完后要禁用,另两块网卡需在后来的小组自建网链解后,按提示或自拟IP设置后方可使用。
2. Windows 2003 Server的安装文件i386已放在ftp://172.17.232.2上的“工具及系统软件\WIN2003\STD”下。在本次实验中,本次实验IIS已经配好。
3. 此次实验需要的各种其它软件以放在网上,(http://172.17.232.2,“软件下载”-“网络综合实验用软件包”)。其中包括
代理软件sygate
Oicq的软件RTX。其中包括服务器端RTXS2007Beta01_V07.0.101.113.0589.exe和客户端软件RTXC2007Beta01_V07.0.101.112.0831.exe
USB口的外置网卡的驱动程序ADMtek(视网络情况而定,有可能本次实验不使用)
网络论坛服务软件BBS
4. 本次实验三个人一个小组,然后由三个小组组成一个大组。(拓扑结构见后)
5. 此次实验的网线分两种,双机直联线和计算机和HUB相连的普通双绞线;
6. 人员分组按蓝队、棕队、绿队。(见后面的拓扑图)
2009-12-17
五子棋java编写的,有点残,如果有意可以改改
可以下下package jdk;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
class ChessPanel extends JPanel{
private int space=20;
private int grids=30;
private int radius=space/2;
private int[][]chesses=new int[grids+1][grids+1];
private int currColor=1;
private JMenuBar chessMenuBar=new JMenuBar();
private JMenu optMenu=new JMenu("操作");
private JMenuItem startMenuItem=new JMenuItem("开始");
private JMenuItem exitMenuItem=new JMenuItem("退出");
private ActionListener startHandler=new ActionListener(){
public void actionPerformed(ActionEvent e){
clearGrids();
currColor=1;
repaint();
}
};
private ActionListener exitHandler=new ActionListener(){
public void actionPerformed(ActionEvent e){
System.exit(0);
}
};
private MouseListener playChessHandler=new MouseAdapter(){
public void mouseClicked(MouseEvent e){
int x=e.getX();
int y=e.getY();
if(x<=grids*space&&x>=0&&y<=grids*space&&y>=0)
if(chesses[round(x)][round(y)]==0){
chesses[round(x)][round(y)]=currColor;
currColor=currColor==1?2:1;
repaint();
}
}
};
public int round(float a){
float f=a/space;
return Math.round(f);
}
public ChessPanel(int space,int grids){
this.space=space;
this.grids=grids;
this.radius=space/2;
setBackground(Color.YELLOW);
setSize(space*grids,space*grids);
startMenuItem.addActionListener(startHandler);
exitMenuItem.addActionListener(exitHandler);
addMouseListener(playChessHandler);
chessMenuBar.add(optMenu);
optMenu.add(startMenuItem);
optMenu.add(exitMenuItem);
}
public JMenuBar getMenuBar(){
return chessMenuBar;
}
private void drawChess(Graphics g,int x,int y,int color){
g.setColor(color==1?Color.WHITE:Color.BLACK);
g.fillOval(x*space-radius, y*space-radius, radius*2, radius*2);
}
public void drawGrids(Graphics g){
g.setColor(Color.DARK_GRAY);
for(int i=0;i<=grids;i++)
{
g.drawLine(0, i*space, grids*space, i*space);
g.drawLine(i*space, 0, i*space,grids*space);
}
}
private void clearGrids(){
for(int i=0;i<=grids;i++)
for(int j=0;j<=grids;j++)
chesses[i][j]=0;
}
public void paintComponent(Graphics g){
super.paintComponent(g);
drawGrids(g);
for(int i=0;i<=grids;i++)
for(int j=0;j<=grids;j++)
if(chesses[i][j]!=0)
drawChess(g,i,j,chesses[i][j]);
}
}
public class ChessPlayer extends JFrame{
private ChessPanel chessPanel=new ChessPanel(20,30);
public ChessPlayer(String title){
super(title);
Container contentPane=getContentPane();
contentPane.add(chessPanel);
setJMenuBar(chessPanel.getMenuBar());
setSize(600,600);
setVisible(true);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
public static void main(String[]args){
new ChessPlayer("五子棋");
}
}
2009-12-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人