You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(25) |
Dec
(39) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
|
Feb
(1) |
Mar
(61) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Marcus <the...@us...> - 2004-03-22 12:28:09
|
Update of /cvsroot/junk/junk/WEB-INF/classes/junk/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2539 Modified Files: IpSubnet.java Log Message: cosmetics Index: IpSubnet.java =================================================================== RCS file: /cvsroot/junk/junk/WEB-INF/classes/junk/util/IpSubnet.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** IpSubnet.java 17 Nov 2003 19:39:59 -0000 1.1.1.1 --- IpSubnet.java 22 Mar 2004 12:17:52 -0000 1.2 *************** *** 2,8 **** * juNK - a file search system for smb shares * ! * Copyright 2003 by Marcus Proest (theevilflow at users dot sf dot net) * ! * This file is part of junk (java usefull net kollektor). * * junk is free software; you can redistribute it and/or modify --- 2,10 ---- * juNK - a file search system for smb shares * ! * Copyright 2004 by ! * Marcus Proest (theevilflow at users dot sf dot net) ! * Uwe van Heeschh (tyron_e at users dot sf dot net) * ! * This file is part of junk (java useful net kollektor). * * junk is free software; you can redistribute it and/or modify *************** *** 21,24 **** --- 23,27 ---- * */ + package junk.util; *************** *** 33,42 **** */ public class IpSubnet implements Iterator, Cloneable { ! /** number of ip's to compute */ ! private long num; /** counter */ private long now; /** 1st byte of the next ip address */ private short a; --- 36,48 ---- */ public class IpSubnet implements Iterator, Cloneable { ! /** original ipstring passed to the constructor */ ! private String ipstring; /** counter */ private long now; + /** number of ip's to compute */ + private long num; + /** 1st byte of the next ip address */ private short a; *************** *** 51,57 **** private short d; - /** original ipstring passed to the constructor */ - private String ipstring; - /** Creates a new instance of IPRange. * @param ipstring The targeted range of ip addresses in the form --- 57,60 ---- *************** *** 66,135 **** } ! /** resets the ip range. ! * you should not do this, it is better to get a new object via ! * the clone method. ! */ ! public void reset() { ! init(); ! } ! ! /** initializes the object data. */ ! private void init() { ! /* ! * this regex determines a string like "nnn.nnn.nnn.nnn/nn". ! * it will not check for bad values. This will be done later. ! */ ! final String regex = "([0-9]{1,3}[.]{1}){3}[0-9]{1,3}[/]{1}[0-9]{1,2}"; ! ! if (!this.ipstring.matches(regex)) { ! throw new IllegalArgumentException("bad ipstring"); ! } ! ! this.now = 0; ! ! String[] str = this.ipstring.split("[./]"); //syntax is "a.b.c.d/s" ! ! int ips = 32 - Integer.parseInt(str[4]); ! ! if (ips < 0) { ! throw new IllegalArgumentException("bad network"); ! } ! ! ! /* ! * number of addresses is 2^s ! * 2 are subtracted because we may not use ! * the first and the last address ! * (network and broadcast) ! */ ! this.num = (long) Math.pow(2, ips) - 2; ! ! ! //apply the ip byte values ! this.a = Short.parseShort(str[0]); ! this.b = Short.parseShort(str[1]); ! this.c = Short.parseShort(str[2]); ! this.d = Short.parseShort(str[3]); ! ! ! // check for bad values ! checkRangeOfValues(a); ! checkRangeOfValues(b); ! checkRangeOfValues(c); ! checkRangeOfValues(d); ! ! // a * 256 ^ 3 + b * 256 ^ 2 + c * 256 ^ 1 + d * 256 ^ 0 ! //double nA = (a * 16777216) + (b * 65536) + (c * 256) + d; ! //double over = nA % (this.num + 2); ! } ! ! /** checks whether the number is an unsigned byte. ! * @param i value to be checked */ ! private void checkRangeOfValues(int i) { ! if ((i > 255) || (i < 0)) { ! throw new IllegalArgumentException( ! "ip segment must be between 0 and 255"); ! } } --- 69,77 ---- } ! /** Clones the subnet. ! * @return a new, resetted instance of IpSubnet */ ! public Object clone() { ! return new IpSubnet(this.ipstring); } *************** *** 154,158 **** */ public Object next() throws NoSuchElementException { ! if (num <= now) { throw new NoSuchElementException(); } --- 96,100 ---- */ public Object next() throws NoSuchElementException { ! if (!this.hasNext()) { throw new NoSuchElementException(); } *************** *** 160,164 **** now++; ! d++; // increase d in advance, to skip the first address if (d > 255) { //leaving range of values for d --- 102,106 ---- now++; ! d++; // increase d in advance, to skip the network address if (d > 255) { //leaving range of values for d *************** *** 178,183 **** /* if the previous checks worked, this will ! * NEVER happen ... maybe throw sth.? */ } } --- 120,127 ---- /* if the previous checks worked, this will ! * NEVER happen */ + throw new InternalError("Error generating IP address. " + + "This should NEVER happen."); } } *************** *** 196,204 **** } ! /** Clones the subnet. ! * @return a new, resetted instance of IpSubnet */ ! public Object clone() { ! return new IpSubnet(this.ipstring); } --- 140,149 ---- } ! /** resets the ip range. ! * you should not do this, it is better to get a new object via ! * the clone method. */ ! public void reset() { ! init(); } *************** *** 210,212 **** return this.ipstring; } ! } \ No newline at end of file --- 155,212 ---- return this.ipstring; } ! ! /** checks whether the number is an unsigned byte. ! * @param i value to be checked ! */ ! private void checkRangeOfValues(int i) { ! if ((i > 255) || (i < 0)) { ! throw new IllegalArgumentException( ! "ip segment must be between 0 and 255"); ! } ! } ! ! /** initializes the object data. */ ! private void init() { ! // This regex determines a string like "nnn.nnn.nnn.nnn/nn". ! // It will not check for bad values. This will be done later. ! final String regex = "([0-9]{1,3}[.]{1}){3}[0-9]{1,3}[/]{1}[0-9]{1,2}"; ! ! if (!this.ipstring.matches(regex)) { ! throw new IllegalArgumentException("bad ipstring"); ! } ! ! this.now = 0; ! ! String[] str = this.ipstring.split("[./]"); //syntax is "a.b.c.d/s" ! ! int ips = 32 - Integer.parseInt(str[4]); ! ! if (ips < 0) { ! throw new IllegalArgumentException("bad network"); ! } ! ! /* ! * number of addresses is 2^s ! * 2 are subtracted because we may not use ! * the first and the last address ! * (network and broadcast) ! */ ! this.num = (long) Math.pow(2, ips) - 2; ! ! //apply the ip byte values ! this.a = Short.parseShort(str[0]); ! this.b = Short.parseShort(str[1]); ! this.c = Short.parseShort(str[2]); ! this.d = Short.parseShort(str[3]); ! ! // check for bad values ! this.checkRangeOfValues(a); ! this.checkRangeOfValues(b); ! this.checkRangeOfValues(c); ! this.checkRangeOfValues(d); ! ! // a * 256 ^ 3 + b * 256 ^ 2 + c * 256 ^ 1 + d * 256 ^ 0 ! //double nA = (a * 16777216) + (b * 65536) + (c * 256) + d; ! //double over = nA % (this.num + 2); ! } ! } |
|
From: Marcus <the...@us...> - 2004-03-22 06:05:56
|
Update of /cvsroot/junk/junk In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24870 Modified Files: make.xml Log Message: added automatic manifest generation Index: make.xml =================================================================== RCS file: /cvsroot/junk/junk/make.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** make.xml 21 Mar 2004 19:22:35 -0000 1.2 --- make.xml 22 Mar 2004 05:55:36 -0000 1.3 *************** *** 4,11 **** <target name="init"> <echo message="setting central properties" /> <property name="lib-dir" value="../lib" /> </target> ! <target depends="init, clean-classes" name="compile" description="Compile the classes"> <javac debug="true" deprecation="true" destdir="." srcdir="."> <classpath> --- 4,21 ---- <target name="init"> <echo message="setting central properties" /> + <property name="version" value="0.1 alpha" /> <property name="lib-dir" value="../lib" /> </target> ! <target name="manifest"> ! <manifest file="../../META-INF/MANIFEST.MF"> ! <attribute name="Built-By" value="${user.name}"/> ! <section name="junk"> ! <!--<attribute name="Sealed" value="true"/>--> ! </section> ! </manifest> ! </target> ! ! <target depends="init, clean-classes" name="compile" description="Compile the classes"> <javac debug="true" deprecation="true" destdir="." srcdir="."> <classpath> *************** *** 17,21 **** </target> ! <target depends="init,clean-binary,compile" name="war" description="Create WAR file"> <war basedir="../../." --- 27,31 ---- </target> ! <target depends="init,clean-binary,compile, manifest" name="war" description="Create WAR file"> <war basedir="../../." |
|
From: Marcus <the...@us...> - 2004-03-21 22:22:44
|
Update of /cvsroot/junk/junk/pics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6836 Removed Files: logo_wh.gif Log Message: rubbish --- logo_wh.gif DELETED --- |
|
From: Marcus <the...@us...> - 2004-03-21 22:21:46
|
Update of /cvsroot/junk/junk/pics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6615 Added Files: file.png Log Message: initial release --- NEW FILE: file.png --- (This appears to be a binary file; contents omitted.) |
|
From: Marcus <the...@us...> - 2004-03-21 22:18:45
|
Update of /cvsroot/junk/junk/pics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5805 Removed Files: computer.gif file.gif Log Message: gif is evil --- file.gif DELETED --- --- computer.gif DELETED --- |
|
From: Marcus <the...@us...> - 2004-03-21 22:17:42
|
Update of /cvsroot/junk/junk/pics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5493 Added Files: computer.png Log Message: initial release --- NEW FILE: computer.png --- (This appears to be a binary file; contents omitted.) |
|
From: Marcus <the...@us...> - 2004-03-21 19:32:45
|
Update of /cvsroot/junk/junk In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4133 Modified Files: make.xml Log Message: Index: make.xml =================================================================== RCS file: /cvsroot/junk/junk/make.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** make.xml 18 Dec 2003 15:45:16 -0000 1.1 --- make.xml 21 Mar 2004 19:22:35 -0000 1.2 *************** *** 1,4 **** <?xml version="1.0" encoding="UTF-8"?> ! <project basedir="WEB-INF/Classes/." default="all" name="juNK"> <target name="init"> --- 1,4 ---- <?xml version="1.0" encoding="UTF-8"?> ! <project basedir="WEB-INF/classes/." default="all" name="juNK"> <target name="init"> *************** *** 23,27 **** destfile="../../junk.war" webxml="../web.xml" ! manifest="../../META-INF/MANIFEST.mf" > --- 23,27 ---- destfile="../../junk.war" webxml="../web.xml" ! manifest="../../META-INF/MANIFEST.MF" > |
|
From: Marcus <the...@us...> - 2004-03-21 17:39:22
|
Update of /cvsroot/junk/junk/WEB-INF/classes/junk/plugin/scanner In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11632 Modified Files: ScannerConfig.java Log Message: removed standalone support Index: ScannerConfig.java =================================================================== RCS file: /cvsroot/junk/junk/WEB-INF/classes/junk/plugin/scanner/ScannerConfig.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ScannerConfig.java 16 Dec 2003 10:55:15 -0000 1.3 --- ScannerConfig.java 21 Mar 2004 17:29:11 -0000 1.4 *************** *** 1,3 **** ! /* * juNK - a file search system for smb shares * --- 1,3 ---- ! /* * juNK - a file search system for smb shares * *************** *** 46,84 **** * plugin configuration key defining the sleep time of the scanner thread */ ! protected static final String THREAD_SLEEP_KEY = "thread-sleep"; ! /** plugin configuration key defining the scanning interval */ ! protected static final String SCAN_INTERVAL_KEY = "scan-interval"; ! /** plugin configuration key defining the ip range */ ! protected static final String IP_RANGE_KEY = "ip-range"; ! /** plugin configuration key defining the tcp timeout */ ! protected static final String TCP_TO_KEY = "tcp-timeout"; ! /** plugin configuration key defining the save map path */ ! protected static final String SAVE_MAP_KEY = "map-save-file"; ! /** log writer */ private Log log = LogFactory.getLog(ScannerPlugin.class); ! /** the time the scannerthread sleeps */ private long sleep = 10000; ! /** the scanning interval */ private long interval = 300000; ! /** the tcp timeout */ private int tcpTimeout = 100; ! /** the path to load and save the hostmap to */ private String savemappath = "data/hostmap"; ! /** the ip subnets to scan over */ private ArrayList ipSubnets = null; ! /** initial ipsubnetsString */ private String ipSubnetsString = null; ! /** Creates a new instance of ScannerConfig. * protected standard constructor to prevent instantiation outside --- 46,84 ---- * plugin configuration key defining the sleep time of the scanner thread */ ! protected static final String KEY_THREAD_SLEEP = "thread-sleep"; ! /** plugin configuration key defining the scanning interval */ ! protected static final String KEY_SCAN_INTERVAL = "scan-interval"; ! /** plugin configuration key defining the ip range */ ! protected static final String KEY_IP_RANGE = "ip-range"; ! /** plugin configuration key defining the tcp timeout */ ! protected static final String KEY_TCP_TO = "tcp-timeout"; ! /** plugin configuration key defining the save map path */ ! protected static final String KEY_SAVE_MAP = "map-save-file"; ! /** log writer */ private Log log = LogFactory.getLog(ScannerPlugin.class); ! /** the time the scannerthread sleeps */ private long sleep = 10000; ! /** the scanning interval */ private long interval = 300000; ! /** the tcp timeout */ private int tcpTimeout = 100; ! /** the path to load and save the hostmap to */ private String savemappath = "data/hostmap"; ! /** the ip subnets to scan over */ private ArrayList ipSubnets = null; ! /** initial ipsubnetsString */ private String ipSubnetsString = null; ! /** Creates a new instance of ScannerConfig. * protected standard constructor to prevent instantiation outside *************** *** 87,91 **** protected ScannerConfig() { } ! /** Creates a new instance of ScannerConfig. * @param m ModuleConfig --- 87,91 ---- protected ScannerConfig() { } ! /** Creates a new instance of ScannerConfig. * @param m ModuleConfig *************** *** 95,121 **** */ protected ScannerConfig(ActionServlet a, ModuleConfig m) ! throws IllegalArgumentException { HashMap conf = null; PlugInConfig[] pluginConfigs = m.findPlugInConfigs(); ! //get the config... there has to be another way to get it for (int x = 0; x < pluginConfigs.length; x++) { if (pluginConfigs[x].getClassName() ! .equals(ScannerPlugin.class.getName())) { conf = (HashMap) pluginConfigs[x].getProperties(); ! break; //leave loop if config found } } ! if (conf == null) { throw new IllegalArgumentException("plugin config not found"); } ! String path = a.getServletContext().getRealPath("/WEB-INF"); ! this.applyConfig(conf, path); } ! /** To provide a StandAlone config * @param h the standalone config --- 95,121 ---- */ protected ScannerConfig(ActionServlet a, ModuleConfig m) ! throws IllegalArgumentException { HashMap conf = null; PlugInConfig[] pluginConfigs = m.findPlugInConfigs(); ! //get the config... there has to be another way to get it for (int x = 0; x < pluginConfigs.length; x++) { if (pluginConfigs[x].getClassName() ! .equals(ScannerPlugin.class.getName())) { conf = (HashMap) pluginConfigs[x].getProperties(); ! break; //leave loop if config found } } ! if (conf == null) { throw new IllegalArgumentException("plugin config not found"); } ! String path = a.getServletContext().getRealPath("/WEB-INF"); ! this.applyConfig(conf, path); } ! /** To provide a StandAlone config * @param h the standalone config *************** *** 124,128 **** this.applyConfig(h, null); } ! /** Apply the config values. * @param conf configuration values --- 124,128 ---- this.applyConfig(h, null); } ! /** Apply the config values. * @param conf configuration values *************** *** 132,161 **** */ private void applyConfig(HashMap conf, String basepath) ! throws IllegalArgumentException { try { this.sleep = Long.parseLong( ! (String) conf.get( ! ScannerConfig.THREAD_SLEEP_KEY)); } catch (Exception e) { ! log.warn("Loading parameter " + ScannerConfig.THREAD_SLEEP_KEY ! + " FAILED, defaulting to " + this.sleep, e); } ! try { this.interval = Long.parseLong( ! (String) conf.get( ! ScannerConfig.SCAN_INTERVAL_KEY)); } catch (Exception e) { ! log.warn("Loading parameter " + ScannerConfig.SCAN_INTERVAL_KEY ! + "FAILED, defaulting to " + this.interval, e); } ! try { ! String subnetConfigs = (String) conf.get(ScannerConfig.IP_RANGE_KEY); this.ipSubnetsString = subnetConfigs; ! String[] scArray = subnetConfigs.split(","); this.ipSubnets = new ArrayList(scArray.length); ! for (int x = 0; x < scArray.length; x++) { this.ipSubnets.add(x, new IpSubnet(scArray[x])); --- 132,161 ---- */ private void applyConfig(HashMap conf, String basepath) ! throws IllegalArgumentException { try { this.sleep = Long.parseLong( ! (String) conf.get( ! ScannerConfig.KEY_THREAD_SLEEP)); } catch (Exception e) { ! log.warn("Loading parameter " + ScannerConfig.KEY_THREAD_SLEEP ! + " FAILED, defaulting to " + this.sleep, e); } ! try { this.interval = Long.parseLong( ! (String) conf.get( ! ScannerConfig.KEY_SCAN_INTERVAL)); } catch (Exception e) { ! log.warn("Loading parameter " + ScannerConfig.KEY_SCAN_INTERVAL ! + "FAILED, defaulting to " + this.interval, e); } ! try { ! String subnetConfigs = (String) conf.get(ScannerConfig.KEY_IP_RANGE); this.ipSubnetsString = subnetConfigs; ! String[] scArray = subnetConfigs.split(","); this.ipSubnets = new ArrayList(scArray.length); ! for (int x = 0; x < scArray.length; x++) { this.ipSubnets.add(x, new IpSubnet(scArray[x])); *************** *** 164,191 **** //this value cannot be defaulted, so failing ist fatal. throw new IllegalArgumentException("Loading parameter " ! + ScannerConfig.IP_RANGE_KEY ! + " FAILED. (" + e.getMessage() ! + ")"); } ! try { this.tcpTimeout = Integer.parseInt( ! (String) conf.get( ! ScannerConfig.TCP_TO_KEY)); } catch (Exception e) { ! log.warn("Loading parameter " + ScannerConfig.TCP_TO_KEY ! + " FAILED, defaulting to " + this.tcpTimeout, e); } ! try { ! String filename = (String) conf.get(ScannerConfig.SAVE_MAP_KEY); this.savemappath = basepath + File.separatorChar + ".." ! + File.separatorChar + filename; } catch (Exception e) { ! log.warn("Loading parameter " + ScannerConfig.SAVE_MAP_KEY ! + " FAILED, defaulting to " + this.savemappath, e); } } ! /** Returns the sleep value. * @return returns the sleep value --- 164,191 ---- //this value cannot be defaulted, so failing ist fatal. throw new IllegalArgumentException("Loading parameter " ! + ScannerConfig.KEY_IP_RANGE ! + " FAILED. (" + e.getMessage() ! + ")"); } ! try { this.tcpTimeout = Integer.parseInt( ! (String) conf.get( ! ScannerConfig.KEY_TCP_TO)); } catch (Exception e) { ! log.warn("Loading parameter " + ScannerConfig.KEY_TCP_TO ! + " FAILED, defaulting to " + this.tcpTimeout, e); } ! try { ! String filename = (String) conf.get(ScannerConfig.KEY_SAVE_MAP); this.savemappath = basepath + File.separatorChar + ".." ! + File.separatorChar + filename; } catch (Exception e) { ! log.warn("Loading parameter " + ScannerConfig.KEY_SAVE_MAP ! + " FAILED, defaulting to " + this.savemappath, e); } } ! /** Returns the sleep value. * @return returns the sleep value *************** *** 194,198 **** return this.sleep; } ! /** Returns the interval value. * @return returns the interval value --- 194,198 ---- return this.sleep; } ! /** Returns the interval value. * @return returns the interval value *************** *** 201,205 **** return this.interval; } ! /** Returns the tcp timeout value. * @return tcp timeout --- 201,205 ---- return this.interval; } ! /** Returns the tcp timeout value. * @return tcp timeout *************** *** 208,212 **** return this.tcpTimeout; } ! /** Returns an iterator over the configured ip subnets. * @return an iterator over the configured ip subnets --- 208,212 ---- return this.tcpTimeout; } ! /** Returns an iterator over the configured ip subnets. * @return an iterator over the configured ip subnets *************** *** 215,219 **** return this.ipSubnets.iterator(); } ! /** Returns the path to the saved hostmap. * @return the path to the saved hostmap --- 215,219 ---- return this.ipSubnets.iterator(); } ! /** Returns the path to the saved hostmap. * @return the path to the saved hostmap *************** *** 222,226 **** return this.savemappath; } ! /** return the initial ipSubnets String * @return initial ipsubnets String --- 222,226 ---- return this.savemappath; } ! /** return the initial ipSubnets String * @return initial ipsubnets String |
|
From: Marcus <the...@us...> - 2004-03-21 16:44:15
|
Update of /cvsroot/junk/junk/WEB-INF/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31856 Added Files: jcifs.jar Log Message: jcifs 0.8.2 --- NEW FILE: jcifs.jar --- (This appears to be a binary file; contents omitted.) |
|
From: Marcus <the...@us...> - 2004-03-21 16:42:19
|
Update of /cvsroot/junk/junk/WEB-INF/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31379 Removed Files: jcifs-0.7.15.jar Log Message: updated to 0.8.2, renamed library to common name --- jcifs-0.7.15.jar DELETED --- |
|
From: Marcus <the...@us...> - 2004-03-20 18:07:56
|
Update of /cvsroot/junk/junk/WEB-INF/classes/junk/plugin/scanner In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27092 Removed Files: Scanner.java Log Message: removing standalone support --- Scanner.java DELETED --- |
|
From: <the...@us...> - 2004-02-15 18:18:53
|
Update of /cvsroot/junk/junk/WEB-INF In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20490 Modified Files: struts-config.xml Log Message: possible fix of "lost connection" bug Index: struts-config.xml =================================================================== RCS file: /cvsroot/junk/junk/WEB-INF/struts-config.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** struts-config.xml 17 Dec 2003 21:26:34 -0000 1.4 --- struts-config.xml 15 Feb 2004 18:11:30 -0000 1.5 *************** *** 6,17 **** <data-sources> <data-source> <set-property property="autoCommit" value="false" /> <set-property property="description" value="Shodan Mysql Datasource Configuration" /> <set-property property="driverClass" value="org.gjt.mm.mysql.Driver" /> <set-property property="maxCount" value="4" /> ! <set-property property="minCount" value="2" /> ! <set-property property="password" value="reader" /> ! <set-property property="url" value="jdbc:mysql://10.0.80.5/smbsearch" /> ! <set-property property="user" value="reader" /> </data-source> </data-sources> --- 6,19 ---- <data-sources> <data-source> + <!-- this is the datasource for our test server system. change the settings to fit your needs --> + <set-property property="url" value="jdbc:mysql://10.0.80.5/smbsearch?autoReconnect=true" /> <!-- change this to your db connect string --> + <set-property property="user" value="reader" /> <!-- change this to your db user --> + <set-property property="password" value="reader" /> <!--change this to your db password --> + <set-property property="autoCommit" value="false" /> <set-property property="description" value="Shodan Mysql Datasource Configuration" /> <set-property property="driverClass" value="org.gjt.mm.mysql.Driver" /> <set-property property="maxCount" value="4" /> ! <set-property property="minCount" value="2" /> </data-source> </data-sources> |
|
From: <the...@us...> - 2003-12-18 19:17:57
|
Update of /cvsroot/junk/junk/WEB-INF/classes/junk/plugin/scanner
In directory sc8-pr-cvs1:/tmp/cvs-serv18335
Modified Files:
Scanner.java ScannerPlugin.java
Log Message:
changed standalone wrapper functionality to "extend"
Index: Scanner.java
===================================================================
RCS file: /cvsroot/junk/junk/WEB-INF/classes/junk/plugin/scanner/Scanner.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Scanner.java 16 Dec 2003 10:54:25 -0000 1.4
--- Scanner.java 18 Dec 2003 19:17:54 -0000 1.5
***************
*** 32,39 ****
* @author Marcus Proest (theevilflow at users dot sf dot net)
*/
! public class Scanner {
! /** the wrapped scannerplugin */
! private ScannerPlugin scannerPlugin;
!
/** Creates a new instance of Scanner
* @param iprange Ip Range to scan in the form
--- 32,36 ----
* @author Marcus Proest (theevilflow at users dot sf dot net)
*/
! public class Scanner extends ScannerPlugin {
/** Creates a new instance of Scanner
* @param iprange Ip Range to scan in the form
***************
*** 42,58 ****
*/
public Scanner(String iprange, int tcpto) {
if (tcpto < 1) {
throw new IllegalArgumentException("tcpto has to be > 0");
}
! HashMap conf = new HashMap(5);
!
! conf.put(ScannerConfig.IP_RANGE_KEY, iprange);
! conf.put(ScannerConfig.SAVE_MAP_KEY, "");
! conf.put(ScannerConfig.SCAN_INTERVAL_KEY, "0");
! conf.put(ScannerConfig.TCP_TO_KEY, new Integer(tcpto).toString());
! conf.put(ScannerConfig.THREAD_SLEEP_KEY, "0");
! scannerPlugin = new ScannerPlugin(new ScannerConfig(conf));
}
--- 39,57 ----
*/
public Scanner(String iprange, int tcpto) {
+
if (tcpto < 1) {
throw new IllegalArgumentException("tcpto has to be > 0");
}
! HashMap c = new HashMap(5);
! c.put(ScannerConfig.IP_RANGE_KEY, iprange);
! c.put(ScannerConfig.SAVE_MAP_KEY, "");
! c.put(ScannerConfig.SCAN_INTERVAL_KEY, "0");
! c.put(ScannerConfig.TCP_TO_KEY, new Integer(tcpto).toString());
! c.put(ScannerConfig.THREAD_SLEEP_KEY, "0");
!
! this.setConf(new ScannerConfig(c));
!
}
***************
*** 62,66 ****
*/
public HostMap scan() {
! return scannerPlugin.performScan();
}
--- 61,65 ----
*/
public HostMap scan() {
! return this.performScan();
}
***************
*** 68,81 ****
* @param args -
*/
- /* public static void main(String[] args) {
- Scanner s = new Scanner("10.0.80.0/24", 100);
- junk.util.OnlineIteratorProvider h = s.scan();
- java.util.Iterator i = h.getOnlineIterator();
- int x = 0;
! while (i.hasNext()) {
! x++;
! System.out.println(x + " " + i.next());
! }
! }*/
}
--- 67,80 ----
* @param args -
*/
! public static void main(String[] args) {
! Scanner s = new Scanner("10.0.80.0/24", 100);
! junk.util.HostIteratorProvider h = s.scan();
! java.util.Iterator i = h.getOnlineIpStringIterator();
! int x = 0;
! while (i.hasNext()) {
! x++;
! System.out.println(x + " " + i.next());
! }
! }
}
Index: ScannerPlugin.java
===================================================================
RCS file: /cvsroot/junk/junk/WEB-INF/classes/junk/plugin/scanner/ScannerPlugin.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ScannerPlugin.java 18 Dec 2003 15:28:40 -0000 1.5
--- ScannerPlugin.java 18 Dec 2003 19:17:54 -0000 1.6
***************
*** 116,120 ****
* @throws ServletException ServletException
*/
! public void init(ActionServlet a, ModuleConfig m) throws ServletException {
this.actionServlet = a;
--- 116,121 ----
* @throws ServletException ServletException
*/
! public void init(ActionServlet a, ModuleConfig m)
! throws ServletException {
this.actionServlet = a;
***************
*** 381,384 ****
--- 382,389 ----
return h;
+ }
+
+ protected void setConf(ScannerConfig conf) {
+ this.conf = conf;
}
}
|
|
From: <ty...@us...> - 2003-12-18 16:27:09
|
Update of /cvsroot/junk/junk/pages
In directory sc8-pr-cvs1:/tmp/cvs-serv12994
Modified Files:
Result.jsp
Log Message:
fixed path relative error
Index: Result.jsp
===================================================================
RCS file: /cvsroot/junk/junk/pages/Result.jsp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Result.jsp 9 Dec 2003 23:09:47 -0000 1.3
--- Result.jsp 18 Dec 2003 16:27:06 -0000 1.4
***************
*** 40,44 ****
<td class="online">
<img src="pics/computer.gif"> <a href="<bean:write name="resultProperties" property="linkPrefix"/><bean:write name="computer" property="ip"/>/" target="_blank"><b><bean:write name="computer" property="name"/></b></a>
! <a onmouseover="style.cursor='hand'" onclick="mod_open('/messageProcessor.do?destHost=<bean:write name="computer" property="name"/>');" title="<bean:message key="message.title"/>"><img src="pics/message.gif" border="0"></a><br>
</td>
</tr>
--- 40,44 ----
<td class="online">
<img src="pics/computer.gif"> <a href="<bean:write name="resultProperties" property="linkPrefix"/><bean:write name="computer" property="ip"/>/" target="_blank"><b><bean:write name="computer" property="name"/></b></a>
! <a onmouseover="style.cursor='hand'" onclick="mod_open('/junk/messageProcessor.do?destHost=<bean:write name="computer" property="name"/>');" title="<bean:message key="message.title"/>"><img src="pics/message.gif" border="0"></a><br>
</td>
</tr>
|
|
From: <the...@us...> - 2003-12-18 15:45:19
|
Update of /cvsroot/junk/junk
In directory sc8-pr-cvs1:/tmp/cvs-serv3782
Added Files:
make.xml
Log Message:
initial release
--- NEW FILE: make.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="WEB-INF/Classes/." default="all" name="juNK">
<target name="init">
<echo message="setting central properties" />
<property name="lib-dir" value="../lib" />
</target>
<target depends="init, clean-classes" name="compile" description="Compile the classes">
<javac debug="true" deprecation="true" destdir="." srcdir=".">
<classpath>
<fileset dir="${lib-dir}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target depends="init,clean-binary,compile" name="war" description="Create WAR file">
<war
basedir="../../."
compress="true"
destfile="../../junk.war"
webxml="../web.xml"
manifest="../../META-INF/MANIFEST.mf"
>
<exclude name="**/*.java"/>
<exclude name="**/*.form"/>
<exclude name="**/.nbattrs"/>
<exclude name="**/hostmap"/>
<exclude name="**/*.war"/>
<exclude name="**/.nbintdb"/>
<exclude name="**/*~*"/>
<exclude name="**/web.xml"/>
<exclude name="apidoc"/>
<exclude name="make.xml"/>
</war>
</target>
<target depends="clean, javadoc,war" description="Build everything." name="all">
<echo message="Application built." />
</target>
<target depends="init, clean-doc" description="javadoc" name="javadoc">
<mkdir dir="../../apidoc"/>
<javadoc
destdir="../../apidoc"
packagenames="junk.*"
Windowtitle=" juNK API "
Use="true"
access="private"
>
<doctitle>juNK [java usefull Net Kollektor] API Documentation</doctitle>
<bottom><![CDATA[<center><a target="_blank" href="http://junk.sf.net">Homepage</a></center>]]></bottom>
<link href="http://java.sun.com/j2se/1.4.2/docs/api/" />
<link href="http://jakarta.apache.org/struts/api/" />
<link href="http://jakarta.apache.org/commons/logging/api/" />
<sourcepath>
<pathelement location="."/>
</sourcepath>
<classpath>
<fileset dir="${lib-dir}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javadoc>
</target>
<target depends="clean-doc, clean-classes, clean-war" description="Clean all build products." name="clean" />
<target depends="clean-classes, clean-war" name="clean-binary" />
<target name="clean-classes">
<delete>
<fileset dir=".">
<include name="**/*.class"/>
</fileset>
</delete>
</target>
<target name="clean-war">
<delete file="../../junk.war"/>
</target>
<target name="clean-doc">
<delete dir="../../apidoc"/>
</target>
</project>
|
|
From: <the...@us...> - 2003-12-18 15:43:33
|
Update of /cvsroot/junk/junk/WEB-INF In directory sc8-pr-cvs1:/tmp/cvs-serv3285 Removed Files: make.xml Log Message: moved to top level dir --- make.xml DELETED --- |
|
From: <the...@us...> - 2003-12-18 15:37:28
|
Update of /cvsroot/junk/junk/WEB-INF In directory sc8-pr-cvs1:/tmp/cvs-serv2007 Removed Files: web.war web.warContent web.webj2eeri Log Message: looks like... junk --- web.war DELETED --- --- web.warContent DELETED --- --- web.webj2eeri DELETED --- |
|
From: <the...@us...> - 2003-12-18 15:32:13
|
Update of /cvsroot/junk/junk/pages
In directory sc8-pr-cvs1:/tmp/cvs-serv1067
Modified Files:
WhoIsOnline.jsp
Log Message:
implemented multiple rows
Index: WhoIsOnline.jsp
===================================================================
RCS file: /cvsroot/junk/junk/pages/WhoIsOnline.jsp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** WhoIsOnline.jsp 18 Dec 2003 09:15:15 -0000 1.3
--- WhoIsOnline.jsp 18 Dec 2003 15:32:09 -0000 1.4
***************
*** 26,30 ****
<!--wio-->
<center>
! <a title="Hosts online: <bean:write name="wio-num-online" />">
<h1 class="wio">Jetzt Online:</h1>
</a>
--- 26,30 ----
<!--wio-->
<center>
! <a title="Hosts online: <bean:write scope="request" name="wio-num-online" />">
<h1 class="wio">Jetzt Online:</h1>
</a>
***************
*** 32,44 ****
<logic:iterate id="row" name="wio-iterator" scope="request">
<tr>
! <logic:iterate id="host" name="row">
<td class="wio" nowrap="nowrap">
! <a
! href="file://<bean:write name="host" property="ip"/>"
! title="<bean:write name="host" property="ip"/>"
! target="_blank"
! >
! <bean:write name="host" property="name"/>
! </a>
</td>
</logic:iterate>
--- 32,47 ----
<logic:iterate id="row" name="wio-iterator" scope="request">
<tr>
! <logic:iterate id="host" name="row" scope="page">
<td class="wio" nowrap="nowrap">
! <logic:present name="host">
! <a
! href="file://<bean:write scope="page" name="host" property="ip" />"
! title="<bean:write scope="page" name="host" property="ip" />"
! target="_blank"
! >
! <bean:write scope="page" name="host" property="name" />
! </a>
! </logic:present>
!
</td>
</logic:iterate>
|
|
From: <the...@us...> - 2003-12-18 15:30:21
|
Update of /cvsroot/junk/junk/WEB-INF/classes/junk/controller
In directory sc8-pr-cvs1:/tmp/cvs-serv581
Modified Files:
WhoIsOnlineAction.java
Log Message:
commented; now uses HostIteratorProvider.getOnlineComputerIterator();
Index: WhoIsOnlineAction.java
===================================================================
RCS file: /cvsroot/junk/junk/WEB-INF/classes/junk/controller/WhoIsOnlineAction.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** WhoIsOnlineAction.java 18 Dec 2003 09:14:32 -0000 1.3
--- WhoIsOnlineAction.java 18 Dec 2003 15:30:17 -0000 1.4
***************
*** 43,53 ****
/**
! *
! * @author mp
*/
public class WhoIsOnlineAction extends Action {
public static final String KEY_ONLINE_ITERATOR = "wio-iterator";
public static final String KEY_NUM_ONLINE = "wio-num-online";
public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
--- 43,64 ----
/**
! * Action Handler for WhoIsOnline page
! * @author Marcus Proest (theevilflow at users dot sf dot net)
*/
public class WhoIsOnlineAction extends Action {
+ /** key to retrieve the iterating object */
public static final String KEY_ONLINE_ITERATOR = "wio-iterator";
+
+ /** key to retrieve the size of the iterating object */
public static final String KEY_NUM_ONLINE = "wio-num-online";
+ /** execute method of the action
+ * @param actionMapping actionMapping
+ * @param actionForm actionForm
+ * @param httpServletRequest httpServletRequest
+ * @param httpServletRespone httpServletRespone
+ * @return actionforward
+ * @throws Exception Exception
+ */
public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
***************
*** 55,84 ****
HttpServletResponse httpServletRespone)
throws Exception {
HostMap hosts = (HostMap) getServlet().getServletContext()
.getAttribute(ScannerPlugin.KEY_HOSTS_MAP);
! Iterator i = hosts.getOnlineIterator();
TreeSet sortedOnline = new TreeSet();
while (i.hasNext()) {
! String ip = (String) i.next();
! NameOnline no = (NameOnline) hosts.get(ip);
!
! Computer c = new Computer();
!
! c.setIp(ip);
! c.setName(no.getName());
! c.setNetFiles(null);
! c.setOnline(no.getOnline());
! sortedOnline.add(c);
}
i = sortedOnline.iterator();
! int w = 3; //this will be a parameter
! int h = (sortedOnline.size() / w) + 1;
! ArrayList col = new ArrayList();
for (int x = 0; x < h; x++) {
ArrayList row = new ArrayList();
--- 66,89 ----
HttpServletResponse httpServletRespone)
throws Exception {
+ //get hostmap from context
HostMap hosts = (HostMap) getServlet().getServletContext()
.getAttribute(ScannerPlugin.KEY_HOSTS_MAP);
! Iterator i = hosts.getOnlineComputerIterator();
TreeSet sortedOnline = new TreeSet();
+ //create a sorted set of computers
while (i.hasNext()) {
! sortedOnline.add(i.next());
}
i = sortedOnline.iterator();
! int w = 3; //this will be a parameter //write w hosts in a row
! int h = (sortedOnline.size() / w) + 1; //height of the table
! ArrayList col = new ArrayList(); //this will be saved to the request
+ //create some sort of a multidimensional ArrayList object
for (int x = 0; x < h; x++) {
ArrayList row = new ArrayList();
***************
*** 90,94 ****
row.add(c);
} else {
! break;
}
}
--- 95,99 ----
row.add(c);
} else {
! row.add(null);
}
}
***************
*** 97,102 ****
}
httpServletRequest.setAttribute(KEY_ONLINE_ITERATOR, col);
! httpServletRequest.setAttribute(KEY_NUM_ONLINE, new Integer(sortedOnline.size()));
--- 102,110 ----
}
+
+ //save to the request
httpServletRequest.setAttribute(KEY_ONLINE_ITERATOR, col);
! httpServletRequest.setAttribute(KEY_NUM_ONLINE,
! new Integer(sortedOnline.size()));
|
|
From: <the...@us...> - 2003-12-18 15:28:43
|
Update of /cvsroot/junk/junk/WEB-INF/classes/junk/plugin/scanner
In directory sc8-pr-cvs1:/tmp/cvs-serv32590
Modified Files:
ScannerPlugin.java
Log Message:
minor changes
Index: ScannerPlugin.java
===================================================================
RCS file: /cvsroot/junk/junk/WEB-INF/classes/junk/plugin/scanner/ScannerPlugin.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ScannerPlugin.java 16 Dec 2003 10:55:58 -0000 1.4
--- ScannerPlugin.java 18 Dec 2003 15:28:40 -0000 1.5
***************
*** 56,65 ****
*
* @author Marcus Proest (theevilflow at users dot sf dot net)
- * @todo implement multithreaded scanning
*/
public class ScannerPlugin implements PlugIn, Runnable {
/** the key under which the map is stored in the servlet context
* @deprecated use KEY_HOSTS_MAP
! * @see ScannerPlugin#KEY_HOST_MAP
*/
public static final String HOSTS_MAP_KEY = ScannerPlugin.KEY_HOSTS_MAP;
--- 56,64 ----
*
* @author Marcus Proest (theevilflow at users dot sf dot net)
*/
public class ScannerPlugin implements PlugIn, Runnable {
/** the key under which the map is stored in the servlet context
* @deprecated use KEY_HOSTS_MAP
! * @see ScannerPlugin#KEY_HOSTS_MAP
*/
public static final String HOSTS_MAP_KEY = ScannerPlugin.KEY_HOSTS_MAP;
***************
*** 80,84 ****
private boolean isScanning = false;
! /** whether the thread is running.
* has to be maintained by the thread itself
*/
--- 79,83 ----
private boolean isScanning = false;
! /** wether the thread is running.
* has to be maintained by the thread itself
*/
***************
*** 209,213 ****
/** scans the net.
* @return <CODE>true</CODE> if the scan was performed.
- * @todo perform tests on thread savety
* @param standalone true, if the method is started standalone
* (out of struts)
--- 208,211 ----
***************
*** 302,306 ****
*
* @param ip the ip address of the host to check
- * @see ScannerPlugin.SMB_PORT
* @return <code>true</code> if the smb port is reachable.
* <CODE>false</CODE> if any error occurs
--- 300,303 ----
|
|
From: <the...@us...> - 2003-12-18 15:27:25
|
Update of /cvsroot/junk/junk/WEB-INF/classes/junk/util
In directory sc8-pr-cvs1:/tmp/cvs-serv32213
Modified Files:
HostMap.java
Log Message:
HostIteratorProvider related updates
Index: HostMap.java
===================================================================
RCS file: /cvsroot/junk/junk/WEB-INF/classes/junk/util/HostMap.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** HostMap.java 16 Dec 2003 10:53:31 -0000 1.2
--- HostMap.java 18 Dec 2003 15:27:22 -0000 1.3
***************
*** 33,46 ****
* @author Marcus Proest (theevilflow at users dot sf dot net)
*/
! public class HostMap extends HashMap implements OnlineIteratorProvider, Map {
/** returns an Iterator over the online ip addresses
* @return an Iterator over the online ip addresses
*/
! public Iterator getOnlineIterator() {
! return new OnlineIterator(this);
}
/** implements an iterator over the online ip addresses */
! class OnlineIterator implements Iterator {
/** the HashMap containing the ip -> NameOnline values */
private HashMap h;
--- 33,50 ----
* @author Marcus Proest (theevilflow at users dot sf dot net)
*/
! public class HostMap extends HashMap implements HostIteratorProvider, Map {
/** returns an Iterator over the online ip addresses
* @return an Iterator over the online ip addresses
*/
! public Iterator getOnlineIpStringIterator() {
! return new OnlineIpStringIterator(this);
! }
!
! public Iterator getOnlineComputerIterator() {
! return new OnlineComputerIterator(this);
}
/** implements an iterator over the online ip addresses */
! class OnlineIpStringIterator implements Iterator {
/** the HashMap containing the ip -> NameOnline values */
private HashMap h;
***************
*** 55,59 ****
* @param h the HashMap containing the ip -> NameOnline values
*/
! private OnlineIterator(HashMap h) {
this.h = h;
this.keys = this.h.keySet().iterator();
--- 59,63 ----
* @param h the HashMap containing the ip -> NameOnline values
*/
! private OnlineIpStringIterator(HashMap h) {
this.h = h;
this.keys = this.h.keySet().iterator();
***************
*** 94,97 ****
--- 98,176 ----
return temp; //return value
+ }
+
+ this.ip = (String) this.keys.next();
+ }
+
+ //if there is no next key, hasNext would return false
+ throw new java.util.NoSuchElementException();
+ }
+
+ /** not needed */
+ public void remove() {
+ throw new UnsupportedOperationException("remove not implemented");
+ }
+ }
+
+ /** implements an Computer Object iterator over the online ip addresses */
+ class OnlineComputerIterator implements Iterator {
+ /** the HashMap containing the ip -> NameOnline values */
+ private HashMap h;
+
+ /** iterator over the keys */
+ private Iterator keys;
+
+ /** the current ip string */
+ private String ip = null;
+
+ /** constructor
+ * @param h the HashMap containing the ip -> NameOnline values
+ */
+ private OnlineComputerIterator(HashMap h) {
+ this.h = h;
+ this.keys = this.h.keySet().iterator();
+ this.ip = (String) this.keys.next();
+ }
+
+ /** Returns true if the iteration has more elements. (In other words,
+ * returns true if next would return an element rather than throwing
+ * an exception.)
+ * @return true if the iterator has more elements.
+ *
+ */
+ public boolean hasNext() {
+ while (this.keys.hasNext()) {
+ if (((NameOnline) this.h.get(ip)).getOnline()
+ .equals(Boolean.TRUE)) {
+ return true; //return true if we get an online ip
+ }
+
+
+ //if it was false (or null), try the next one
+ this.ip = (String) this.keys.next();
+ }
+
+ return false; // if there is no next key, return false
+ }
+
+ /** Returns the next element in the iteration.
+ * @return the next element in the iteration.
+ *
+ */
+ public Object next() {
+ while (this.keys.hasNext()) {
+ if (((NameOnline) this.h.get(ip)).getOnline()
+ .equals(Boolean.TRUE)) {
+ //assemble Computer
+ Computer c = new Computer();
+ NameOnline no = (NameOnline) this.h.get(this.ip);
+ c.setIp(this.ip);
+ c.setName(no.getName());
+ c.setNetFiles(null);
+ c.setOnline(no.getOnline());
+
+ this.ip = (String) keys.next(); //forward iterator
+
+ return c; //return value
}
|
|
From: <the...@us...> - 2003-12-18 15:26:05
|
Update of /cvsroot/junk/junk/WEB-INF/classes/junk/util
In directory sc8-pr-cvs1:/tmp/cvs-serv32025
Added Files:
HostIteratorProvider.java
Log Message:
initial revision
--- NEW FILE: HostIteratorProvider.java ---
/*
* juNK - a file search system for smb shares
*
* Copyright 2003 by Marcus Proest (theevilflow at users dot sf dot net)
*
* This file is part of junk (java useful net kollektor).
*
* junk is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* junk is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with junk; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
package junk.util;
import java.util.Iterator;
/**
* Interface to provide an Iterator over the Online IP's
* @author Marcus Proest (theevilflow at users dot sf dot net)
*/
public interface HostIteratorProvider {
/** get an Iterator over the online IP's
* @return an Iterator over the online IP's
*/
public Iterator getOnlineIpStringIterator();
/** get an Iterator over online Computer Objects
* @return an Iterator over online Computer Objects
*/
public Iterator getOnlineComputerIterator();
}
|
|
From: <the...@us...> - 2003-12-18 15:22:30
|
Update of /cvsroot/junk/junk/WEB-INF
In directory sc8-pr-cvs1:/tmp/cvs-serv31372
Added Files:
make.xml
Log Message:
initial revision
--- NEW FILE: make.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="Classes/." default="all" name="juNK">
<target name="init">
<echo message="setting central properties" />
<property name="lib-dir" value="../lib" />
</target>
<target depends="init, clean-classes" name="compile" description="Compile the classes">
<javac debug="true" deprecation="true" destdir="." srcdir=".">
<classpath>
<fileset dir="${lib-dir}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target depends="init,clean-binary,compile" name="war" description="Create WAR file">
<war
basedir="../../."
compress="true"
destfile="../../junk.war"
webxml="../web.xml"
manifest="../../META-INF/MANIFEST.mf"
>
<exclude name="**/*.java"/>
<exclude name="**/*.form"/>
<exclude name="**/.nbattrs"/>
<exclude name="**/hostmap"/>
<exclude name="**/*.war"/>
<exclude name="**/.nbintdb"/>
<exclude name="**/*~*"/>
<exclude name="**/web.xml"/>
<exclude name="apidoc"/>
<exclude name="make.xml"/>
</war>
</target>
<target depends="clean, javadoc,war" description="Build everything." name="all">
<echo message="Application built." />
</target>
<target depends="init, clean-doc" description="javadoc" name="javadoc">
<mkdir dir="../../apidoc"/>
<javadoc
destdir="../../apidoc"
packagenames="junk.*"
Windowtitle=" juNK API "
Use="true"
access="private"
>
<doctitle>juNK [java usefull Net Kollektor] API Documentation</doctitle>
<bottom><![CDATA[<center><a target="_blank" href="http://junk.sf.net">Homepage</a></center>]]></bottom>
<link href="http://java.sun.com/j2se/1.4.2/docs/api/" />
<link href="http://jakarta.apache.org/struts/api/" />
<link href="http://jakarta.apache.org/commons/logging/api/" />
<sourcepath>
<pathelement location="."/>
</sourcepath>
<classpath>
<fileset dir="${lib-dir}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javadoc>
</target>
<target depends="clean-doc, clean-classes, clean-war" description="Clean all build products." name="clean" />
<target depends="clean-classes, clean-war" name="clean-binary" />
<target name="clean-classes">
<delete>
<fileset dir=".">
<include name="**/*.class"/>
</fileset>
</delete>
</target>
<target name="clean-war">
<delete file="../../junk.war"/>
</target>
<target name="clean-doc">
<delete dir="../../apidoc"/>
</target>
</project>
|
|
From: <the...@us...> - 2003-12-18 13:48:43
|
Update of /cvsroot/junk/junk/WEB-INF/classes/junk/util In directory sc8-pr-cvs1:/tmp/cvs-serv11509 Removed Files: OnlineIteratorProvider.java Log Message: renamed to HostIteratorProvider --- OnlineIteratorProvider.java DELETED --- |
|
From: <the...@us...> - 2003-12-18 09:40:02
|
Update of /cvsroot/junk/junk/pages
In directory sc8-pr-cvs1:/tmp/cvs-serv3043
Modified Files:
style.css
Log Message:
wio
Index: style.css
===================================================================
RCS file: /cvsroot/junk/junk/pages/style.css,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** style.css 9 Dec 2003 23:17:07 -0000 1.3
--- style.css 18 Dec 2003 09:39:59 -0000 1.4
***************
*** 1,88 ****
! body {
! font-family: Verdana, Helvetica, sans-serif;
! font-weight: normal;
! font-size: 12pt;
! }
!
! table.navigation{
! border: 2px solid black;
! border-spacing: 2px;
! padding: 0px 0px;
! background-color: #1F54B5;
! color: #ffffff;
! }
! td.navigation{
! border-right: 1px dotted white;
! }
!
!
! td.error{
! color: white;
! border: 1px dotted white;
! }
!
! table.online{
! border: 1px solid black;
! border-spacing: 0px;
! padding: 3px 3px;
! background-color: #D7D7D7;
! color: black;
! }
!
! tr.online{
! background-color: #D7D7D7;
! }
!
! td.online{
! background-color: #D7D7D7;
! white-space: nowrap;
! border-top: 1px dotted white;
! color: black;
! }
!
! table.offline{
! border: 1px dashed black;
! border-spacing: 0px;
! padding: 3px 3px;
! background-color: #e8e8e8;
! color: #666666;
! }
!
! tr.offline{
! border: 1px solid black;
! background-color: #e8e8e8;
! }
!
! td.offline{
! white-space: nowrap;
! border-top: 1px dotted white;
! background-color: #e8e8e8;
! }
!
! table.message{
! border: 2px solid black;
! border-spacing: 2px;
! padding: 0px 0px;
! background-color: #1F54B5;
! color: #ffffff;
! }
! td.message{
! border-right: 1px dotted white;
! }
!
!
! a.offline{
! color: #666666;
! }
!
! a:hover {
! color: #1F54B5;
! }
!
! a{
! text-decoration: none;
! font-weight: normal;
! color: black;
!
! }
!
--- 1 ----
! body {
font-family: Verdana, Helvetica, sans-serif;
font-weight: normal;
font-size: 12pt;
}
table.navigation{
border: 2px solid black;
border-spacing: 3px;
padding: 0px 0px;
background-color: #1F54B5;
color: #ffffff;
}
td.error{
color: white;
border: 1px dotted white;
}
table.online{
border: 1px solid black;
border-spacing: 0px;
padding: 3px 3px;
background-color: #D7D7D7;
color: black;
}
tr.online{
background-color: #D7D7D7;
}
td.online{
background-color: #D7D7D7;
color: black;
}
table.offline{
border: 1px solid black;
border-spacing: 0px;
padding: 3px 3px;
background-color: #ffa0a0;
color: black;
}
tr.offline{
border: 1px solid black;
background-color: #ffa0a0;
}
td.offline{
background-color: #ffa0a0;
}
a:hover {
color: #1F54B5;
}
a {
text-decoration: none;
font-weight: normal;
color: black;
}
td.wio {
border-bottom: 1px dotted black;
padding-left: 15px;
padding-right: 15px;
padding-top: 2px;
padding-bottom: 0px;
text-align: center;
white-space: nowrap;
}
h1.wio {
font-size: 22px;
color: #000033;
}
\ No newline at end of file
|