Skip to content

Commit

Permalink
Add rescan (#34)
Browse files Browse the repository at this point in the history
* Add rescan

Any files that have a BlackboardArtifact already are eligible to be
rescanned.

This means, anything that has been scanned, or has had a hash lookup can
be rescanned.
Of course, these scans/hash lookups have to be in the same case for the
rescan option to show up.

* Add first seen and last scanned

* Use switch in tag response handler

* Rename all SwarmIt to PolySwarm

* Move path swarmit/io/polyswarm/swarmit to polyswarm/io/polyswarm/app

* Add message to get API key

* Add message on first scan

* Do filesize check before scanning

* Bump to 2.1.0

* Remove swarmit from gitignore

* Remove spurious reference to ImageGallery

* Fix typo

* Improve comment
  • Loading branch information
Rizato authored Jun 11, 2020
1 parent 2e71be2 commit c74707b
Show file tree
Hide file tree
Showing 93 changed files with 6,583 additions and 5,746 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
/swarmit/nbproject/private/
/swarmit/build/
/swarmit/release/modules
/polyswarm/nbproject/private/
/polyswarm/nbproject/private/
/polyswarm/build/

.idea/
16 changes: 8 additions & 8 deletions swarmit/build.xml → polyswarm/build.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
<!-- for some information on what you could do (e.g. targets to override). -->
<!-- If you delete this file and reopen the project it will be recreated. -->
<project name="io.polyswarm.swarmit" default="netbeans" basedir=".">
<description>Builds, tests, and runs the project io.polyswarm.swarmit.</description>
<import file="nbproject/build-impl.xml"/>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
<!-- for some information on what you could do (e.g. targets to override). -->
<!-- If you delete this file and reopen the project it will be recreated. -->
<project name="io.polyswarm.app" default="netbeans" basedir=".">
<description>Builds, tests, and runs the project io.polyswarm.app.</description>
<import file="nbproject/build-impl.xml"/>
</project>
File renamed without changes.
5 changes: 5 additions & 0 deletions polyswarm/manifest.mf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Manifest-Version: 1.0
AutoUpdate-Show-In-Client: true
OpenIDE-Module: io.polyswarm.app
OpenIDE-Module-Localizing-Bundle: io/polyswarm/app/Bundle.properties
OpenIDE-Module-Specification-Version: 2.1.0
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
*** GENERATED FROM project.xml - DO NOT EDIT ***
*** EDIT ../build.xml INSTEAD ***
-->
<project name="io.polyswarm.swarmit-impl" basedir="..">
<fail message="Please build using Ant 1.7.1 or higher.">
<condition>
<not>
<antversion atleast="1.7.1"/>
</not>
</condition>
</fail>
<property file="nbproject/private/platform-private.properties"/>
<property file="nbproject/platform.properties"/>
<macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-project/2">
<attribute name="name"/>
<attribute name="value"/>
<sequential>
<property name="@{name}" value="${@{value}}"/>
</sequential>
</macrodef>
<macrodef name="evalprops" uri="http://www.netbeans.org/ns/nb-module-project/2">
<attribute name="property"/>
<attribute name="value"/>
<sequential>
<property name="@{property}" value="@{value}"/>
</sequential>
</macrodef>
<property file="${user.properties.file}"/>
<nbmproject2:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
<nbmproject2:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
<nbmproject2:evalprops property="cluster.path.evaluated" value="${cluster.path}" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
<fail message="Path to 'platform' cluster missing in $${cluster.path} property or using corrupt Netbeans Platform (missing harness).">
<condition>
<not>
<contains string="${cluster.path.evaluated}" substring="platform"/>
</not>
</condition>
</fail>
<import file="${harness.dir}/build.xml"/>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<!--
*** GENERATED FROM project.xml - DO NOT EDIT ***
*** EDIT ../build.xml INSTEAD ***
-->
<project name="io.polyswarm.app-impl" basedir="..">
<fail message="Please build using Ant 1.7.1 or higher.">
<condition>
<not>
<antversion atleast="1.7.1"/>
</not>
</condition>
</fail>
<property file="nbproject/private/platform-private.properties"/>
<property file="nbproject/platform.properties"/>
<macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-project/2">
<attribute name="name"/>
<attribute name="value"/>
<sequential>
<property name="@{name}" value="${@{value}}"/>
</sequential>
</macrodef>
<macrodef name="evalprops" uri="http://www.netbeans.org/ns/nb-module-project/2">
<attribute name="property"/>
<attribute name="value"/>
<sequential>
<property name="@{property}" value="@{value}"/>
</sequential>
</macrodef>
<property file="${user.properties.file}"/>
<nbmproject2:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
<nbmproject2:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
<nbmproject2:evalprops property="cluster.path.evaluated" value="${cluster.path}" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
<fail message="Path to 'platform' cluster missing in $${cluster.path} property or using corrupt Netbeans Platform (missing harness).">
<condition>
<not>
<contains string="${cluster.path.evaluated}" substring="platform"/>
</not>
</condition>
</fail>
<import file="${harness.dir}/build.xml"/>
</project>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
build.xml.data.CRC32=a5e198ae
build.xml.script.CRC32=4a22439a
build.xml.stylesheet.CRC32=[email protected]
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=a5e198ae
nbproject/build-impl.xml.script.CRC32=573e5ded
nbproject/build-impl.xml.stylesheet.CRC32=[email protected]
build.xml.data.CRC32=a5e198ae
build.xml.script.CRC32=4a22439a
build.xml.stylesheet.CRC32=[email protected]
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=a5e198ae
nbproject/build-impl.xml.script.CRC32=573e5ded
nbproject/build-impl.xml.stylesheet.CRC32=[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cluster.path=\
${nbplatform.active.dir}/autopsy:\
${nbplatform.active.dir}/harness:\
${nbplatform.active.dir}/java:\
${nbplatform.active.dir}/platform
nbjdk.active=JDK_1.8
nbplatform.active=Autopsy_4.15.0
cluster.path=\
${nbplatform.active.dir}/autopsy:\
${nbplatform.active.dir}/harness:\
${nbplatform.active.dir}/java:\
${nbplatform.active.dir}/platform
nbjdk.active=JDK_1.8
nbplatform.active=Autopsy_4.15.0
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml
file.reference.commons-codec-1.10.jar=release/modules/ext/commons-codec-1.10.jar
file.reference.commons-dbcp2-2.1.1.jar=release/modules/ext/commons-dbcp2-2.1.1.jar
file.reference.commons-logging-1.2.jar=release/modules/ext/commons-logging-1.2.jar
file.reference.commons-pool2-2.6.0.jar=release/modules/ext/commons-pool2-2.6.0.jar
file.reference.guava-26.0-jre.jar=release/modules/ext/guava-26.0-jre.jar
file.reference.httpclient-4.5.6.jar=release/modules/ext/httpclient-4.5.6.jar
file.reference.httpcore-4.4.10.jar=release/modules/ext/httpcore-4.4.10.jar
file.reference.httpmime-4.5.6.jar=release/modules/ext/httpmime-4.5.6.jar
file.reference.json-20180813.jar=release/modules/ext/json-20180813.jar
file.reference.sqlite-jdbc-3.25.2.jar=release/modules/ext/sqlite-jdbc-3.25.2.jar
javac.source=1.8
javac.compilerargs=-Xlint -Xlint:-serial
license.file=../LICENSE
project.license=polyswarm
nbm.homepage=https://polyswarm.io
nbm.module.author=PolySwarm Dev Team
nbm.needs.restart=true
auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml
file.reference.commons-codec-1.10.jar=release/modules/ext/commons-codec-1.10.jar
file.reference.commons-dbcp2-2.1.1.jar=release/modules/ext/commons-dbcp2-2.1.1.jar
file.reference.commons-logging-1.2.jar=release/modules/ext/commons-logging-1.2.jar
file.reference.commons-pool2-2.6.0.jar=release/modules/ext/commons-pool2-2.6.0.jar
file.reference.guava-26.0-jre.jar=release/modules/ext/guava-26.0-jre.jar
file.reference.httpclient-4.5.6.jar=release/modules/ext/httpclient-4.5.6.jar
file.reference.httpcore-4.4.10.jar=release/modules/ext/httpcore-4.4.10.jar
file.reference.httpmime-4.5.6.jar=release/modules/ext/httpmime-4.5.6.jar
file.reference.json-20180813.jar=release/modules/ext/json-20180813.jar
file.reference.sqlite-jdbc-3.25.2.jar=release/modules/ext/sqlite-jdbc-3.25.2.jar
javac.source=1.8
javac.compilerargs=-Xlint -Xlint:-serial
license.file=../LICENSE
project.license=polyswarm
nbm.homepage=https://polyswarm.io
nbm.module.author=PolySwarm Dev Team
nbm.needs.restart=true
Loading

0 comments on commit c74707b

Please sign in to comment.