Login Register






The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.
Thread Rating:
  • 0 Vote(s) - 0 Average


Your program in the official HC Programs? filter_list
Author
Message
Your program in the official HC Programs? #1
Hello you reading this,

We have created a category for our loyal coders that want to provide HC with their tools & programs.

Do you think that your program is worth to be a HC official?
Please post down here if your interested using the form below.


Name:
Description:
Supported OS:
Coded in:
Screenshots:

---

Requirements:
I WILL need your sauce (source) to make sure its clean.
Make sure it is HC related. If you have a GUI put in the HC logo. If you have a CLI add "Hackcommunity" to the title like done here: http://www.hackcommunity.com/Thread-HC-O...emover-CLI

(post edited by Deque)

Reply

RE: Your program in the official HC Programs? #2
Name: JarBinder

Description:

This filebinder that can bind runnable .jar and .exe files to a jar file.
It has a GUI as well as a CLI. If you start the program without any arguments, the GUI is invoked.

CLI-Usage:

Quote:usage: java -jar jarbinder <runnable-file-1> <runnable-file-2> <destination-file>

Example: java -jar jarbinder app1.jar app2.jar dest.jar

Example output:

Quote:-*-*-*------------JarBinder V.0.1 by Deque------------*-*-*-

binding files app1.jar and app2.jar to dest.jar ...
done

Requirements

You need a Java7 JDK. The program will try to find it in the default location. If it can't find any, it will prompt you to give the location. It will save the location in a settings file, so you only have to do this once.

Supported OS

I tested the program for Windows and Linux.

Coded in: Java

Screenshot:

[Image: twilntcp.png]

Source: http://www.file-upload.net/download-6726...e.zip.html

Program: http://www.file-upload.net/download-4819...r.zip.html

Edit: I forgot the source of the stub which is only included as .class file.

Stub source:

Code:
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.RandomAccessFile;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.attribute.PosixFilePermission;
import java.nio.file.attribute.PosixFilePermissions;
import java.security.ProtectionDomain;
import java.util.Set;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;

public class Application {

    private static final String SEP = System.getProperty("file.separator");
    private static final int ZIP_MAGIC_NUMBER = 0x504B0304;

    public static void main(final String[] args) throws URISyntaxException,
            IOException, InterruptedException {
        URI uri = getJarLocation();

        URI runnable1 = createTempFile(uri, "GUI.class");
        Process process1 = runFile(runnable1);

        URI runnable2 = createTempFile(uri, "Properties.class");
        Process process2 = runFile(runnable2);

        // wait so tempFiles can be deleted afterwards
        process1.waitFor();
        process2.waitFor();
    }

    private static boolean isZipFile(File file) {
        try (RandomAccessFile raf = new RandomAccessFile(file, "r")) {
            int n = raf.readInt();
            return n == ZIP_MAGIC_NUMBER ? true : false;
        } catch (IOException e) {
            return false;
        }
    }

    private static boolean osIsWindows() {
        return System.getProperty("os.name").toLowerCase().contains("windows");
    }

    private static Process runFile(URI runnable) throws IOException {
        File file = new File(runnable);
        ProcessBuilder pb = null;

        if (isZipFile(file)) {
            pb = runAsJar(file);
        } else {
            pb = runAsExe(file);
        }

        return pb.start();
    }

    private static ProcessBuilder runAsExe(File file) {
        ProcessBuilder pb;
        if (osIsWindows()) {
            pb = new ProcessBuilder(file.toString());
        } else {
            if (file.toString().startsWith("/")
                    || file.toString().startsWith("./")) {
                pb = new ProcessBuilder(file.toString());
            } else {
                pb = new ProcessBuilder("./" + file.toString());
            }
        }
        return pb;
    }

    private static ProcessBuilder runAsJar(File file) {
        String javaRunnable = "java";
        if (osIsWindows()) {
            javaRunnable = "java.exe";
        }

        ProcessBuilder pb = new ProcessBuilder(System.getProperty("java.home")
                + SEP + "bin" + SEP + javaRunnable, "-jar", file.toString());
        return pb;
    }

    private static URI getJarLocation() throws URISyntaxException {
        ProtectionDomain domain = Application.class.getProtectionDomain();
        URL url = domain.getCodeSource().getLocation();
        return url.toURI();
    }

    private static URI createTempFile(URI jarLocation, String fileToExtract)
            throws IOException {

        try (ZipFile zipFile = new ZipFile(new File(jarLocation))) {
            File tempFile = File.createTempFile(
                    fileToExtract + Long.toString(System.currentTimeMillis()),
                    ".exe");
            setFilePermissions(tempFile);
            tempFile.deleteOnExit();
            ZipEntry entry = zipFile.getEntry(fileToExtract);

            if (entry != null) {
                return extract(entry, tempFile, zipFile);

            } else {
                throw new FileNotFoundException("File " + fileToExtract
                        + " not found in " + zipFile.getName());
            }
        }
    }

    private static void setFilePermissions(File tempFile) throws IOException {
        if (!osIsWindows()) {
            Set<PosixFilePermission> perms = PosixFilePermissions
                    .fromString("rwxrwxrwx");
            Files.setPosixFilePermissions(tempFile.toPath(), perms);
        }
    }

    private static URI extract(ZipEntry entry, File tempFile, ZipFile zipFile)
            throws IOException {
        try (InputStream in = zipFile.getInputStream(entry);
                FileOutputStream fos = new FileOutputStream(tempFile)) {
            byte[] buf = new byte[512];
            int i;

            while ((i = in.read(buf)) != -1) {
                fos.write(buf, 0, i);
            }
        }
        return tempFile.toURI();
    }
}

Reply

RE: Your program in the official HC Programs? #3
(10-23-2012, 01:56 PM)Deque Wrote: Name: JarBinder

Description:

This filebinder that can bind runnable .jar and .exe files to a jar file.
It has a GUI as well as a CLI. If you start the program without any arguments, the GUI is invoked.

CLI-Usage:

Quote:usage: java -jar jarbinder <runnable-file-1> <runnable-file-2> <destination-file>

Example: java -jar jarbinder app1.jar app2.jar dest.jar

Example output:

Quote:-*-*-*------------JarBinder V.0.1 by Deque------------*-*-*-

binding files app1.jar and app2.jar to dest.jar ...
done

Requirements

You need a Java7 JDK. The program will try to find it in the default location. If it can't find any, it will prompt you to give the location. It will save the location in a settings file, so you only have to do this once.

Supported OS

I tested the program for Windows and Linux.

Coded in: Java

Screenshot:

[Image: twilntcp.png]

Source: http://www.file-upload.net/download-6726...e.zip.html

Program: http://www.file-upload.net/download-4819...r.zip.html

Edit: I forgot the source of the stub which is only included as .class file.

Stub source:

Code:
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.RandomAccessFile;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.attribute.PosixFilePermission;
import java.nio.file.attribute.PosixFilePermissions;
import java.security.ProtectionDomain;
import java.util.Set;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;

public class Application {

    private static final String SEP = System.getProperty("file.separator");
    private static final int ZIP_MAGIC_NUMBER = 0x504B0304;

    public static void main(final String[] args) throws URISyntaxException,
            IOException, InterruptedException {
        URI uri = getJarLocation();

        URI runnable1 = createTempFile(uri, "GUI.class");
        Process process1 = runFile(runnable1);

        URI runnable2 = createTempFile(uri, "Properties.class");
        Process process2 = runFile(runnable2);

        // wait so tempFiles can be deleted afterwards
        process1.waitFor();
        process2.waitFor();
    }

    private static boolean isZipFile(File file) {
        try (RandomAccessFile raf = new RandomAccessFile(file, "r")) {
            int n = raf.readInt();
            return n == ZIP_MAGIC_NUMBER ? true : false;
        } catch (IOException e) {
            return false;
        }
    }

    private static boolean osIsWindows() {
        return System.getProperty("os.name").toLowerCase().contains("windows");
    }

    private static Process runFile(URI runnable) throws IOException {
        File file = new File(runnable);
        ProcessBuilder pb = null;

        if (isZipFile(file)) {
            pb = runAsJar(file);
        } else {
            pb = runAsExe(file);
        }

        return pb.start();
    }

    private static ProcessBuilder runAsExe(File file) {
        ProcessBuilder pb;
        if (osIsWindows()) {
            pb = new ProcessBuilder(file.toString());
        } else {
            if (file.toString().startsWith("/")
                    || file.toString().startsWith("./")) {
                pb = new ProcessBuilder(file.toString());
            } else {
                pb = new ProcessBuilder("./" + file.toString());
            }
        }
        return pb;
    }

    private static ProcessBuilder runAsJar(File file) {
        String javaRunnable = "java";
        if (osIsWindows()) {
            javaRunnable = "java.exe";
        }

        ProcessBuilder pb = new ProcessBuilder(System.getProperty("java.home")
                + SEP + "bin" + SEP + javaRunnable, "-jar", file.toString());
        return pb;
    }

    private static URI getJarLocation() throws URISyntaxException {
        ProtectionDomain domain = Application.class.getProtectionDomain();
        URL url = domain.getCodeSource().getLocation();
        return url.toURI();
    }

    private static URI createTempFile(URI jarLocation, String fileToExtract)
            throws IOException {

        try (ZipFile zipFile = new ZipFile(new File(jarLocation))) {
            File tempFile = File.createTempFile(
                    fileToExtract + Long.toString(System.currentTimeMillis()),
                    ".exe");
            setFilePermissions(tempFile);
            tempFile.deleteOnExit();
            ZipEntry entry = zipFile.getEntry(fileToExtract);

            if (entry != null) {
                return extract(entry, tempFile, zipFile);

            } else {
                throw new FileNotFoundException("File " + fileToExtract
                        + " not found in " + zipFile.getName());
            }
        }
    }

    private static void setFilePermissions(File tempFile) throws IOException {
        if (!osIsWindows()) {
            Set<PosixFilePermission> perms = PosixFilePermissions
                    .fromString("rwxrwxrwx");
            Files.setPosixFilePermissions(tempFile.toPath(), perms);
        }
    }

    private static URI extract(ZipEntry entry, File tempFile, ZipFile zipFile)
            throws IOException {
        try (InputStream in = zipFile.getInputStream(entry);
                FileOutputStream fos = new FileOutputStream(tempFile)) {
            byte[] buf = new byte[512];
            int i;

            while ((i = in.read(buf)) != -1) {
                fos.write(buf, 0, i);
            }
        }
        return tempFile.toURI();
    }
}

Thanks, this will be added in.
Also it may take a week before its in. I will restyle the GUI to HC for it so people know its from hc Wink

Reply

RE: Your program in the official HC Programs? #4
It's cool man..Smile keep on programming great ideas. I'm programming a RAT that will steal Browser logs and passes.

Reply

RE: Your program in the official HC Programs? #5
Nice programming bro...
Going to build with other programming tools...
[Image: ph4ntomnuk3r_zps3b19e76d.gif]

Reply

RE: Your program in the official HC Programs? #6
thnkssss dear very good looking thanks advannce

Reply

RE: Your program in the official HC Programs? #7
(10-23-2012, 04:00 PM)bluedog.tar.gz Wrote: Thanks, this will be added in.
Also it may take a week before its in. I will restyle the GUI to HC for it so people know its from hc Wink

I can also change the GUI so it fits better to HC, if that helps. But I am not a good designer.

@the others: Thanks for your feedback.

Reply

RE: Your program in the official HC Programs? #8
(11-07-2012, 12:03 PM)Deque Wrote:
(10-23-2012, 04:00 PM)bluedog.tar.gz Wrote: Thanks, this will be added in.
Also it may take a week before its in. I will restyle the GUI to HC for it so people know its from hc Wink

I can also change the GUI so it fits better to HC, if that helps. But I am not a good designer.

@the others: Thanks for your feedback.

That would be very good because I don't have ANY time at the moment.
I'm in the middle of a examsweek.

Reply

RE: Your program in the official HC Programs? #9
Is this ok?

[Image: gq9mtz7a.png]
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.

[Image: 2YpkRjy.png]

Reply

RE: Your program in the official HC Programs? #10
(11-07-2012, 04:52 PM)Deque Wrote: Is this ok?

[Image: gq9mtz7a.png]

awesome see your a good designer

Reply







Users browsing this thread: 1 Guest(s)