Compare commits
No commits in common. "f5c14694400bb31636e86784ab4b0a33b69ca658" and "5d90f76070c4dcadb1a2313f1943c2824e674867" have entirely different histories.
f5c1469440
...
5d90f76070
|
@ -4,13 +4,3 @@ CMakeLists.txt
|
||||||
*kevin*
|
*kevin*
|
||||||
*.out
|
*.out
|
||||||
/venv/*
|
/venv/*
|
||||||
/venv3/*
|
|
||||||
*.zip
|
|
||||||
/jasmin-2.4/*
|
|
||||||
hash.txt
|
|
||||||
/drm/target/*
|
|
||||||
/drm/Cargo.lock
|
|
||||||
/DeepNested/target/*
|
|
||||||
pi.txt
|
|
||||||
/DeepNested/src/main/java/net/ahines/DeepNested/*
|
|
||||||
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<module type="JAVA_MODULE" version="4" />
|
|
|
@ -1,38 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
|
|
||||||
<groupId>net.ahines</groupId>
|
|
||||||
<artifactId>DeepNested</artifactId>
|
|
||||||
<version>1.0-SNAPSHOT</version>
|
|
||||||
<packaging>jar</packaging>
|
|
||||||
|
|
||||||
<developers>
|
|
||||||
<developer>
|
|
||||||
<name>ZeroHD</name>
|
|
||||||
<url>https://www.ahines.net</url>
|
|
||||||
</developer>
|
|
||||||
</developers>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<defaultGoal>install</defaultGoal>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<!-- Build an executable JAR -->
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-jar-plugin</artifactId>
|
|
||||||
<version>2.4</version>
|
|
||||||
<configuration>
|
|
||||||
<archive>
|
|
||||||
<manifest>
|
|
||||||
<mainClass>net.ahines.DeepNested.DeepNested</mainClass>
|
|
||||||
</manifest>
|
|
||||||
</archive>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
|
|
||||||
</project>
|
|
37
LISCENCE
37
LISCENCE
|
@ -1,37 +0,0 @@
|
||||||
This software package in fact has a licence
|
|
||||||
|
|
||||||
it is right here
|
|
||||||
|
|
||||||
you are reading it now
|
|
||||||
|
|
||||||
so
|
|
||||||
|
|
||||||
what does this mean?
|
|
||||||
|
|
||||||
licences are nice so people know how to use your software
|
|
||||||
|
|
||||||
there are a lot of great ones out there
|
|
||||||
|
|
||||||
this is the only that is actually perfect
|
|
||||||
|
|
||||||
what is this liscence type you may ask?
|
|
||||||
|
|
||||||
its called the fucky wucky liscence
|
|
||||||
|
|
||||||
and must be pasted ver batum in a project that wants to use it
|
|
||||||
|
|
||||||
the real meat of it is the following:
|
|
||||||
|
|
||||||
no matter how hard this project fucks your wuckies, its not our fault
|
|
||||||
|
|
||||||
you are also more than welcome to let it fuck youe wuckies as much as you want
|
|
||||||
|
|
||||||
hell
|
|
||||||
|
|
||||||
charge people to let them get fucked by this projects wuckies
|
|
||||||
|
|
||||||
you feel me dog?
|
|
||||||
|
|
||||||
cool
|
|
||||||
|
|
||||||
-Zer0
|
|
19
Makefile
19
Makefile
|
@ -1,24 +1,9 @@
|
||||||
CC = gcc
|
CC = gcc
|
||||||
FLAGS = -m32 -nostdlib -nostdinc -static -Wall -O2
|
FLAGS = -m32 -nostdlib -nostdinc -static -Wall -O2
|
||||||
|
|
||||||
clean: hash pi
|
clean:
|
||||||
@echo $(step_count)
|
@echo $(step_count)
|
||||||
${CC} ${FLAGS} main.c -o 0.out
|
${CC} ${FLAGS} main.c -o 0.out
|
||||||
|
|
||||||
remove: clean_pi
|
remove: clean
|
||||||
echo "#define output" > hash.txt
|
|
||||||
rm *.out
|
rm *.out
|
||||||
|
|
||||||
hash:
|
|
||||||
./jasmin.sh
|
|
||||||
|
|
||||||
clean_pi:
|
|
||||||
rm -rf DeepNested/target
|
|
||||||
rm DeepNested/src/main/java/net/ahines/DeepNested/DeepNested.java
|
|
||||||
rm pi.txt
|
|
||||||
|
|
||||||
|
|
||||||
pi:
|
|
||||||
python3 nester.py > DeepNested/src/main/java/net/ahines/DeepNested/DeepNested.java
|
|
||||||
mvn -f DeepNested/pom.xml
|
|
||||||
java -jar DeepNested/target/DeepNested-1.0-SNAPSHOT.jar > pi.txt
|
|
||||||
|
|
|
@ -5,11 +5,6 @@ Python 2 (Python 3 is for sinners)
|
||||||
gcc
|
gcc
|
||||||
Any OS other than Windows 8
|
Any OS other than Windows 8
|
||||||
A name other than kevin
|
A name other than kevin
|
||||||
Python3
|
|
||||||
Java
|
|
||||||
Maven
|
|
||||||
Make
|
|
||||||
Rust
|
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
run determine\_os.py to begin the build
|
run determine\_os.py to begin the build
|
||||||
|
|
19
build_hash.j
19
build_hash.j
|
@ -1,19 +0,0 @@
|
||||||
.class public HelloWorld
|
|
||||||
.super java/lang/Object
|
|
||||||
|
|
||||||
.method public static main([Ljava/lang/String;)V
|
|
||||||
.limit stack 5
|
|
||||||
.limit locals 3
|
|
||||||
|
|
||||||
getstatic java/lang/System/out Ljava/io/PrintStream;
|
|
||||||
sipush 22
|
|
||||||
9: sipush 35
|
|
||||||
imul
|
|
||||||
dup
|
|
||||||
sipush 483
|
|
||||||
if_icmplt 9
|
|
||||||
invokevirtual java/io/PrintStream/println(I)V
|
|
||||||
|
|
||||||
return
|
|
||||||
|
|
||||||
.end method
|
|
|
@ -24,7 +24,7 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
os.environ['step_count'] = "0"
|
os.environ['step_count'] = "0"
|
||||||
|
|
||||||
os.execv("/usr/bin/make", ["clean"])
|
os.execv("/usr/bin/make", ["Makefile"])
|
||||||
elif (os.pardir.isdir("C:\\Windows\\")):
|
elif (os.pardir.isdir("C:\\Windows\\")):
|
||||||
print "windows";
|
print "windows";
|
||||||
|
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
[package]
|
|
||||||
name = "drm"
|
|
||||||
version = "0.1.0"
|
|
||||||
authors = ["Joey Hines <joey@ahines.net>"]
|
|
||||||
edition = "2018"
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
reqwest = "0.9.16"
|
|
|
@ -1,23 +0,0 @@
|
||||||
extern crate reqwest;
|
|
||||||
|
|
||||||
use reqwest::Error;
|
|
||||||
use std::time::Duration;
|
|
||||||
use reqwest::ClientBuilder;
|
|
||||||
|
|
||||||
|
|
||||||
fn main() -> Result<(), Error> {
|
|
||||||
let request_url = "https://www.ea.com";
|
|
||||||
println!("{}", request_url);
|
|
||||||
|
|
||||||
let timeout = Duration::new(5, 0);
|
|
||||||
let client = ClientBuilder::new().timeout(timeout).build()?;
|
|
||||||
let response = client.head(request_url).send()?;
|
|
||||||
|
|
||||||
if response.status().is_success() {
|
|
||||||
println!("ea found");
|
|
||||||
} else {
|
|
||||||
println!("ea not found");
|
|
||||||
}
|
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
|
22
jasmin.sh
22
jasmin.sh
|
@ -1,22 +0,0 @@
|
||||||
#! /bin/bash
|
|
||||||
|
|
||||||
wget https://downloads.sourceforge.net/project/jasmin/jasmin/jasmin-2.4/jasmin-2.4.zip
|
|
||||||
unzip jasmin-2.4.zip
|
|
||||||
|
|
||||||
java -jar ./jasmin-2.4/jasmin.jar build_hash.j
|
|
||||||
|
|
||||||
if [[ $? == 0 ]]; then
|
|
||||||
OUTPUT=$(java HelloWorld)
|
|
||||||
echo "#define HASH $OUTPUT" > hash.txt
|
|
||||||
rm jasmin-2.4.zip
|
|
||||||
rm -rf jasmin-2.4
|
|
||||||
rm HelloWorld.class
|
|
||||||
exit 0
|
|
||||||
else:
|
|
||||||
echo Hash not found
|
|
||||||
rm jasmin-2.4.zip
|
|
||||||
rm -rf jasmin-2.4
|
|
||||||
rm HelloWorld.class
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
5
main.c
5
main.c
|
@ -3,8 +3,6 @@
|
||||||
#define touches asm
|
#define touches asm
|
||||||
#define yoursyscall volatile
|
#define yoursyscall volatile
|
||||||
|
|
||||||
#include "hash.txt"
|
|
||||||
|
|
||||||
|
|
||||||
//TODO make this safe
|
//TODO make this safe
|
||||||
int size_of(void * in) {
|
int size_of(void * in) {
|
||||||
|
@ -21,9 +19,6 @@ int owo() {
|
||||||
char tmp1[] = "Hello world\n";
|
char tmp1[] = "Hello world\n";
|
||||||
int temp1;
|
int temp1;
|
||||||
|
|
||||||
#ifdef output
|
|
||||||
public class BuildExecutor {
|
|
||||||
#endif
|
|
||||||
touches yoursyscall ("int $0x80":
|
touches yoursyscall ("int $0x80":
|
||||||
"=a" (temp1):
|
"=a" (temp1):
|
||||||
"a" (4), "b" (1), "c" (tmp1), "d" (size_of(tmp1))
|
"a" (4), "b" (1), "c" (tmp1), "d" (size_of(tmp1))
|
||||||
|
|
36
nester.py
36
nester.py
|
@ -1,36 +0,0 @@
|
||||||
limit = 25
|
|
||||||
print("package net.ahines.DeepNested;")
|
|
||||||
print("class DeepNested {")
|
|
||||||
print("\tpublic static void main(String args[]) {")
|
|
||||||
print("\t\tNested1 nested1 = new Nested1(0.0);")
|
|
||||||
print("\t}")
|
|
||||||
|
|
||||||
class_name = "Nested%d"
|
|
||||||
class_header = "public static class %s {"
|
|
||||||
|
|
||||||
for i in range(1, limit):
|
|
||||||
tab_str = "\t"
|
|
||||||
for x in range(0, i):
|
|
||||||
tab_str += "\t"
|
|
||||||
|
|
||||||
nested_name = class_name % i
|
|
||||||
nested_header = class_header % nested_name
|
|
||||||
print(tab_str + nested_header)
|
|
||||||
print(tab_str + "\t" + nested_name + "(double sum) {")
|
|
||||||
print(tab_str + "\t\t" + ("sum += ((-1)^(%d+1)) / (2.0 * %d - 1.0);" % (i, i))) # copied from stack overflow
|
|
||||||
|
|
||||||
if (i == limit-1):
|
|
||||||
print(tab_str + "\t\tSystem.out.println(sum);")
|
|
||||||
else:
|
|
||||||
print(tab_str + "\t\tNested%d test%d = new %s(sum);" % (i+1, i, class_name % (i+1)))
|
|
||||||
print(tab_str + "}")
|
|
||||||
print("\n")
|
|
||||||
|
|
||||||
for i in range(limit, 1, -1):
|
|
||||||
tab_str = ""
|
|
||||||
for x in range(0, i):
|
|
||||||
tab_str += "\t"
|
|
||||||
|
|
||||||
print(tab_str + "}")
|
|
||||||
|
|
||||||
print("}")
|
|
Loading…
Reference in New Issue