forked from netkiller/netkiller.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·286 lines (276 loc) · 13.7 KB
/
index.html
File metadata and controls
executable file
·286 lines (276 loc) · 13.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- #BeginTemplate "/templates/article.dwt" --><!-- DW6 -->
<head>
<!-- #BeginEditable "doctitle" -->
<title>Netkiller - Neo Homepage</title>
<style type="text/css">
<!--
.style1 {color: #006633}
.style2 {color: #339900}
-->
</style>
<!-- #EndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name ="Keywords" content="陈景峰,netkiller,chen,Linux,Freebsd,Solaris,Sco,HP-UX,IBM-AIX,cisco,oracle,java,cgi,mysql,PostgreSQL,perl,Apache,proFTPd,pureftpd,postfix,Sendmail,Qmail,DNS,Squid,Rsync,SSL" />
<meta name ="Keywords" content="陈景峰,网路杀手,网络杀手" />
<meta name="Description" content="陈景峰" />
<style type="text/css">
<!--
a:link {text-decoration: none; font-size:10pt}
a:visited {text-decoration: none; font-size:10pt}
a:active {text-decoration: none; font-size:10pt}
a:hover {text-decoration:underline;color:red}
body {font-size: 10pt;line-height:13pt;}
table,tr,td{font-size:10pt;line-height:13pt;}
p {text-indent: 18pt;line-height:13pt;}
.wlink { color: #FFFFFF}
-->
</style>
</head>
<body bgcolor="DFEFFF" text="#000000">
<table width="90%" border="3" cellspacing="0" cellpadding="5" bgcolor="E0F0FF" class="t02" align="center" bordercolor="4FA7FF">
<tr valign="top">
<td colspan="2" height="27">
<table width="100%" border="1" cellspacing="0" cellpadding="0" class="t02" bordercolorlight="4FA7FF" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
<tr>
<td>
<div align="center"><!-- #BeginEditable "titles" -->
<p>PostgreSQL Converse</p>
<!-- #EndEditable --></div> </td>
</tr>
<tr>
<td>
<div align="center"><a href="mailto:openunix@163.com">---陈景峰(netkiller)</a> </div> </td>
</tr>
<tr>
<td>
<div align="left"><!-- #BeginEditable "content" -->
<table width="50%" border="1" align="center">
<tr>
<td colspan="3">Create Java Entity Bean (not EJB CMP) </td>
</tr>
<tr>
<td width="13%"> </td>
<td width="69%"><a href="pgsql.py">pgsql.py</a></td>
<td width="18%"> </td>
</tr>
<tr>
<td colspan="3">功能简介:pgsql.py 是一个将数据库表直接生成java bean和HTML From的软件,使用方法运行 pysql.py然后输入表名即可</td>
</tr>
<tr>
<td colspan="3">Sample:</td>
</tr>
<tr>
<td> </td>
<td><a href="Users.java">Users.java</a></td>
<td><a href="Users.html">Users.html</a></td>
</tr>
<tr>
<td> </td>
<td><a href="Groups.java">Groups.java</a></td>
<td><a href="Groups.html">Groups.html</a></td>
</tr>
<tr>
<td> </td>
<td><a href="System_log.java">System_log.java</a></td>
<td><a href="System_log.html">System_log.html</a></td>
</tr>
<tr>
<td> </td>
<td><a href="Company.java">Company.java</a></td>
<td><a href="Company.html">Company.html</a></td>
</tr>
<tr>
<td> </td>
<td><a href="Person.java">Person.java</a></td>
<td><a href="Groups.html">Person.html</a></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><a href="server.py">mail2pgsql.py</a></td>
<td>未完成</td>
</tr>
<tr>
<td colspan="3"><p>功能:实现一个SMTP Server 将邮件投递到PostgreSQL数据库中,
只要稍加改动就可以实现mail2sms,mail2xxx
</p> </td>
</tr>
<tr>
<td> </td>
<td><a href="socket-file.log">socket-file.log</a></td>
<td> </td>
</tr>
</table>
<p> </p>
<table width="100%" border="1">
<tr>
<td>软件使用方法</td>
</tr>
<tr>
<td>[root@linux tmp]# ./pgsql.py<br />
Please enter a table: <span class="style1">system_log</span><br />
[root@linux tmp]# </td>
</tr>
<tr>
<td>查看生成的Java Bean</td>
</tr>
<tr>
<td>
<blockquote>
<pre>
[root@linux tmp]# ls
Groups.java Oa.meeting.java pgsql.py Role.java System_log.java Users.java workfile.java
[root@linux tmp]# cat System_log.java |more
package netkiller.ebusiness;
import java.sql.*;
import java.util.*;
import netkiller.database.*;
import netkiller.security.*;
public class System_log{
private String status = null;
private String description = null;
private String ip = null;
private String oid = null;
private String login_date = null;
private String id = null;
private String uid = null;
public System_log(){
}
public void setStatus(String value){
this.status = value;
}
public String getStatus(){
return this.status;
}
public void setDescription(String value){
this.description = value;
}
public String getDescription(){
return this.description;
}
public void setIp(String value){
this.ip = value;
}
public String getIp(){
return this.ip;
}
public void setOid(String value){
this.oid = value;
}
public String getOid(){
return this.oid;
--More--
</pre>
</blockquote>
</td>
</tr>
<tr>
<td>配置方法 (修改绿色部分) </td>
</tr>
<tr>
<td>[root@linux tmp]# cat pgsql.py |more<br />
#!/usr/bin/python
<p>#############################################################<br />
# Created 2003-12-6<br />
# Modified<br />
# Project PostgreSQL Converse<br />
# Model Create Java Entity Bean (not EJB CMP)<br />
# Company Organizations<br />
# Author 陈景峰<br />
# Nickname netkiller<br />
# Email openunix@163.com<br />
# Version 1.0<br />
# Database PostgreSQL 7.3.4<br />
#############################################################</p>
<p>import pg<br />
import string<br />
db = pg.DB(dbname='<span class="style2">netkiller</span>', host='<span class="style2">127.0.0.1</span>', user='<span class="style2">netkiller</span>',passwd='<span class="style2">chen</span>')<br />
</p></td>
</tr>
</table>
<p> </p>
<!-- #EndEditable --></div> </td>
</tr>
<tr>
<td>
<div align="right">注:转载请注明原文档出处</div> </td>
</tr>
<tr>
<td align="center"><a href="http://netkiller.8800.org">主页</a> |<a href="javascript:window.self.close()"> 关闭</a></td>
</tr>
</table>
</td>
</tr>
</table>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="444" height="63">
<tbody>
<tr>
<td width="100%">
<hr align="center" color="#49c6ba" size="1" width="600" />
</td>
</tr>
<tr>
<td width="100%">
<div align="center"><font color="#333399" size="2">陈景峰(netkiller) ICQ:101888222<br />
Yahoo:bg7nyt,AIM:bg7nyt<br />
Email:openunix<a href="mailto:openunix@163.com">(at)163(dot)com</a></font> </div>
</td>
</tr>
</tbody>
</table>
</div>
<table width="100%" border="0">
<tr>
<td align="center">
<form action="http://wwp.icq.com/scripts/WWPMsg.dll" method="post">
<table valign="top" cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="5"><a href="http://public.icq.com/public/panels/respondpanel/links/respondpanel.html"><img src="http://public.icq.com/public/panels/respondpanel/images/icqrespond.gif" width="209" height="17" border="0" alt="" /></a><a href="http://public.icq.com/public/panels/respondpanel/links/webcomm.html"><img src="http://web.icq.com/whitepages/online?icq=101888222&img=3" width="249" height="17" border="0" alt="" /></a></td>
</tr>
<tr>
<td rowspan="4"><a href="http://public.icq.com/public/panels/respondpanel/links/wwp.html?101888222"><img src="http://public.icq.com/public/panels/respondpanel/images/visit.gif" width="98" height="68" border="0" alt="" /></a></td>
<td colspan="3"><img src="http://public.icq.com/public/panels/respondpanel/images/respondby.gif" width="261" height="11" border="0" alt="" /></td>
<td rowspan="4"><a href="http://public.icq.com/public/panels/respondpanel/links/icq.html"><img src="http://public.icq.com/public/panels/respondpanel/images/whatisicq.gif" width="99" height="68" border="0" alt="" /></a></td>
</tr>
<tr>
<td><a href="http://public.icq.com/public/panels/respondpanel/links/chat.html?101888222"><img src="http://public.icq.com/public/panels/respondpanel/images/chat.gif" width="87" height="23" border="0" alt="" /></a></td>
<td><a href="http://public.icq.com/public/panels/respondpanel/links/message.html?101888222"><img src="http://public.icq.com/public/panels/respondpanel/images/icqme.gif" width="88" height="23" border="0" alt="" /></a></td>
<td><a href="http://public.icq.com/public/panels/respondpanel/links/add.html?101888222"><img src="http://public.icq.com/public/panels/respondpanel/images/addme.gif" width="87" height="23" border="0" alt="" /></a></td>
</tr>
<tr>
<td colspan="3"><img src="http://public.icq.com/public/panels/respondpanel/images/ifyoudont.gif" width="261" height="11" border="0" alt="" /></td>
</tr>
<tr>
<td><a href="http://public.icq.com/public/panels/respondpanel/links/wwp.html?101888222"><img src="http://public.icq.com/public/panels/respondpanel/images/pageme.gif" width="87" height="23" border="0" alt="" /></a></td>
<td><a href="http://public.icq.com/public/panels/respondpanel/links/zoom.html?101888222"><img src="http://public.icq.com/public/panels/respondpanel/images/zoom.gif" width="87" height="23" border="0" alt="" /></a></td>
<td><a href="http://public.icq.com/public/panels/respondpanel/links/pager.html?openunix@163.com,101888222"><img src="http://public.icq.com/public/panels/respondpanel/images/email.gif" width="87" height="23" border="0" alt="" /></a></td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td align="center">
<!-- Begin AIM Remote -->
<table><tr><td><nobr><a href="http://www.aol.co.uk/aim/register/register.html"><img src="http://www.aol.co.uk/aim/remote/gr/aimhor_man.gif" width="37" height="45" border="0" alt="Download AIM" /></a><img src="http://www.aol.co.uk/aim/remote/gr/aimhor_leftsm.gif" width="81" height="45" border="0" alt="AIM Remote" /><a href="aim:goim?screenname=bg7nyt&message=Hi.+Are+you+there?"><img src="http://www.aol.co.uk/aim/remote/gr/aimhor_im.gif" width="103" height="45" border="0" alt="Send me an Instant Message" /></a><a href="aim:addbuddy?screenname=xnetkiller"><img src="http://www.aol.co.uk/aim/remote/gr/aimhor_bud.gif" width="103" height="45" border="0" alt="Add me to Your Buddy List" /></a><a href="aim:gochat?roomname=xnetkiller+Chat"><img src="http://www.aol.co.uk/aim/remote/gr/aimhor_chat.gif" width="103" height="45" border="0" alt="Join my Chat Room" /></a><a href="mailto:xnetkiller@netscape.net"><img src="http://www.aol.co.uk/aim/remote/gr/aimhor_email.gif" width="103" height="45" border="0" alt="Send me an Email" /></a><a href="http://www.aol.co.uk/aim/remote.html"><img src="http://www.aol.co.uk/aim/remote/gr/aimhor_right.gif" width="55" height="45" border="0" alt="Add Remote to Your Page" /></a></nobr></td></tr><tr><td colspan="4" align="center"><a href="http://www.aol.co.uk/aim/register/register.html"><font size="2" face="geneva, arial, Helvetica, sans-serif">Download AOL Instant Messenger</font></a></td></tr></table>
<!-- End AIM Remote -->
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2033740-1";
urchinTracker();
</script>
</body>
<!-- #EndTemplate --></html>