Skip to content

Commit

Permalink
gradle supprot added
Browse files Browse the repository at this point in the history
  • Loading branch information
moeinfatehi committed Jun 16, 2022
1 parent 88e74d5 commit 7b37842
Show file tree
Hide file tree
Showing 80 changed files with 590 additions and 4,103 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
/nbproject/private/
/build/
Binary file added .gradle/7.4.2/checksums/checksums.lock
Binary file not shown.
Binary file added .gradle/7.4.2/checksums/md5-checksums.bin
Binary file not shown.
Binary file added .gradle/7.4.2/checksums/sha1-checksums.bin
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file added .gradle/7.4.2/fileChanges/last-build.bin
Binary file not shown.
Binary file added .gradle/7.4.2/fileHashes/fileHashes.bin
Binary file not shown.
Binary file added .gradle/7.4.2/fileHashes/fileHashes.lock
Binary file not shown.
Binary file added .gradle/7.4.2/fileHashes/resourceHashesCache.bin
Binary file not shown.
Empty file added .gradle/7.4.2/gc.properties
Empty file.
Binary file added .gradle/7.4/checksums/checksums.lock
Binary file not shown.
Binary file not shown.
Empty file.
Binary file added .gradle/7.4/executionHistory/executionHistory.bin
Binary file not shown.
Binary file added .gradle/7.4/executionHistory/executionHistory.lock
Binary file not shown.
Binary file added .gradle/7.4/fileChanges/last-build.bin
Binary file not shown.
Binary file added .gradle/7.4/fileHashes/fileHashes.bin
Binary file not shown.
Binary file added .gradle/7.4/fileHashes/fileHashes.lock
Binary file not shown.
Binary file added .gradle/7.4/fileHashes/resourceHashesCache.bin
Binary file not shown.
Empty file added .gradle/7.4/gc.properties
Empty file.
Binary file added .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
2 changes: 2 additions & 0 deletions .gradle/buildOutputCleanup/cache.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Thu Jun 16 16:13:51 IRDT 2022
gradle.version=7.4
Binary file added .gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
Binary file not shown.
Binary file added .gradle/nb-cache/subprojects.ser
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7B4AD0E3465DD37EB6441DC325ABE9A47ED6CE87158C836E90FC3473A1B3FA2B
Empty file added .gradle/vcs-1/gc.properties
Empty file.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ to have the best result, it's recommended that you first do these steps before s
* crawl the domain actively using the Burpsuite crawler. (in the target tab: right click on the domain -> scan -> crawl only)
* If the application needs authentication, login via browser and submit the forms to see if there are more files or directories to be listed under our target.

# Build From Source Code
1. To build the project, you need <a href="https://gradle.org/install/">Gradle</a> installed.</br>
2. Clone the repository</br>`git clone https://github.com/moeinfatehi/Backup-Finder`
3. Open the main directory of the project (where build.gradle file exists) and run: `gradle makeJar`
4. The Jar file will be generated in "build/libs/Backup-finder.jar"

# Some of the options
These options can be used to customize the detection:
Expand All @@ -74,5 +79,5 @@ These options can be used to customize the detection:
# Disclaimer
This program is for educational purposes ONLY. Do not use it without permission. The usual disclaimer applies, especially the fact that I'm not liable for any damages caused by the direct or indirect use of the information or functionality provided by these programs. The author or any Internet provider bears NO responsibility for content or misuse of these programs or any derivatives thereof. By using these programs you accept the fact that any damage (data loss, system crash, system compromise, etc.) caused by the use of this program is not my responsibility.

# Contact
# Hack and have fun!
If you have any further questions, please don't hesitate to contact me via my <a href="https://twitter.com/MoeinFatehi">twitter</a> account.
Binary file removed backupFinder.jar
Binary file not shown.
34 changes: 34 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
plugins {
id 'java'
}

repositories {
mavenCentral()
}

dependencies {
implementation 'net.portswigger.burp.extender:burp-extender-api:1.7.22'
}

sourceSets {
main {
java {
srcDir 'src'
}
resources {
srcDir 'src'
}
}
}

task makeJar(type: Jar) {

archiveBaseName = project.name
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}

compileJava {
targetCompatibility '1.8'
sourceCompatibility '1.8'
}
683 changes: 517 additions & 166 deletions nbproject/build-impl.xml

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions nbproject/genfiles.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
build.xml.data.CRC32=48178936
build.xml.script.CRC32=2c4e4407
build.xml.stylesheet.CRC32=8064a381@1.80.1.48
build.xml.stylesheet.CRC32=f85dc8f2@1.103.0.48
# 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=48178936
nbproject/build-impl.xml.script.CRC32=1425d60a
nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
nbproject/build-impl.xml.script.CRC32=7a5aaf4f
nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.103.0.48
12 changes: 12 additions & 0 deletions nbproject/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ build.test.results.dir=${build.dir}/test/results
#debug.transport=dt_socket
debug.classpath=\
${run.classpath}
debug.modulepath=\
${run.modulepath}
debug.test.classpath=\
${run.test.classpath}
debug.test.modulepath=\
${run.test.modulepath}
# This directory is removed when the project is cleaned:
dist.dir=dist
dist.jar=${dist.dir}/backupFinder.jar
Expand All @@ -33,13 +37,17 @@ javac.classpath=
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
javac.modulepath=
javac.processormodulepath=
javac.processorpath=\
${javac.classpath}
javac.source=1.7
javac.target=1.7
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}
javac.test.modulepath=\
${javac.modulepath}
javac.test.processorpath=\
${javac.test.classpath}
javadoc.additionalparam=
Expand All @@ -65,9 +73,13 @@ run.classpath=\
# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
# or test-sys-prop.name=value to set system properties for unit tests):
run.jvmargs=
run.modulepath=\
${javac.modulepath}
run.test.classpath=\
${javac.test.classpath}:\
${build.test.classes.dir}
run.test.modulepath=\
${javac.test.modulepath}
source.encoding=UTF-8
src.dir=src
test.src.dir=test
10 changes: 5 additions & 5 deletions src/backupFinder/HelpPanel.form
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane9" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane8" min="-2" pref="134" max="-2" attributes="0"/>
<EmptySpace pref="199" max="32767" attributes="0"/>
<Component id="jScrollPane8" min="-2" pref="169" max="-2" attributes="0"/>
<EmptySpace pref="164" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
Expand All @@ -135,15 +135,15 @@
<Data value="Email"/>
<Data value="Website"/>
<Data value="Twitter"/>
<Data value="Copyright"/>
<Data value="Github"/>
</Column>
<Column editable="true" title="Input Fuzzer" type="java.lang.Object">
<Data value="0.1"/>
<Data value="0.2"/>
<Data value="Moein Fatehi"/>
<Data value="[email protected]"/>
<Data value="moeinfatehi.ir"/>
<Data value="@MoeinFatehi"/>
<Data value="&#xa9; 2015-2016 Moein Fatehi"/>
<Data value="https://github.com/moeinfatehi/"/>
</Column>
</Table>
</Property>
Expand Down
10 changes: 5 additions & 5 deletions src/backupFinder/HelpPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private void update_About_Tab() {
aboutTable.getTableHeader().getColumnModel().getColumn(1).setHeaderValue(BurpExtender.getProjectName());
Calendar calendar = new GregorianCalendar();
int year = calendar.get(Calendar.YEAR);
aboutTable.setValueAt("© "+(year-1)+"-"+year+" Moein Fatehi", 5, 1);
// aboutTable.setValueAt("© "+(year-1)+"-"+year+" Moein Fatehi", 5, 1);
try {
editorPane.setText(ReadFile("instruction"));
} catch (IOException ex) {
Expand Down Expand Up @@ -113,12 +113,12 @@ private void initComponents() {

aboutTable.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{"Version", "0.1"},
{"Version", "0.2"},
{"Creator", "Moein Fatehi"},
{"Email", "[email protected]"},
{"Website", "moeinfatehi.ir"},
{"Twitter", "@MoeinFatehi"},
{"Copyright", "© 2015-2016 Moein Fatehi"}
{"Github", "https://github.com/moeinfatehi/"}
},
new String [] {
"Project", "Input Fuzzer"
Expand Down Expand Up @@ -158,8 +158,8 @@ private void initComponents() {
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(199, Short.MAX_VALUE))
.addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(164, Short.MAX_VALUE))
);

jTabbedPane1.addTab("About", aboutPanel);
Expand Down
4 changes: 3 additions & 1 deletion src/burp/BurpExtender.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ public class BurpExtender extends JPanel implements IBurpExtender
static JScrollPane frame;
public static PrintWriter output;
public static String project_Name="backupFinder";
private static final String project_Version="0.1";
private static final String project_Version="0.2";
private static String project_git="https://github.com/moeinfatehi/Backup-Finder";

public BurpExtender() {
// this.historyModel = (DefaultTableModel)mainPanel.historyTable.getModel();
Expand Down Expand Up @@ -43,6 +44,7 @@ public void run()
}

private void initComponents() {
output.println("Project Git URL: "+project_git);
}// </editor-fold>

public byte[] processProxyMessage(int messageReference, boolean messageIsRequest, String remoteHost, int remotePort, boolean serviceIsHttps, String httpMethod, String url,
Expand Down
97 changes: 0 additions & 97 deletions src/burp/IBurpCollaboratorClientContext.java

This file was deleted.

41 changes: 0 additions & 41 deletions src/burp/IBurpCollaboratorInteraction.java

This file was deleted.

31 changes: 0 additions & 31 deletions src/burp/IBurpExtender.java

This file was deleted.

Loading

0 comments on commit 7b37842

Please sign in to comment.