Compare commits
10 Commits
5d90f76070
...
f5c1469440
Author | SHA1 | Date |
---|---|---|
|
f5c1469440 | |
|
9506b6b970 | |
|
24659227a8 | |
|
4e40be8d72 | |
|
d48446f345 | |
|
8449670976 | |
|
8af3252278 | |
|
1f1dfed0a4 | |
|
f088b591e1 | |
|
486b42ec31 |
|
@ -4,3 +4,13 @@ CMakeLists.txt
|
|||
*kevin*
|
||||
*.out
|
||||
/venv/*
|
||||
/venv3/*
|
||||
*.zip
|
||||
/jasmin-2.4/*
|
||||
hash.txt
|
||||
/drm/target/*
|
||||
/drm/Cargo.lock
|
||||
/DeepNested/target/*
|
||||
pi.txt
|
||||
/DeepNested/src/main/java/net/ahines/DeepNested/*
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4" />
|
|
@ -0,0 +1,38 @@
|
|||
<?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>
|
|
@ -0,0 +1,37 @@
|
|||
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,9 +1,24 @@
|
|||
CC = gcc
|
||||
FLAGS = -m32 -nostdlib -nostdinc -static -Wall -O2
|
||||
|
||||
clean:
|
||||
clean: hash pi
|
||||
@echo $(step_count)
|
||||
${CC} ${FLAGS} main.c -o 0.out
|
||||
|
||||
remove: clean
|
||||
remove: clean_pi
|
||||
echo "#define output" > hash.txt
|
||||
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,6 +5,11 @@ Python 2 (Python 3 is for sinners)
|
|||
gcc
|
||||
Any OS other than Windows 8
|
||||
A name other than kevin
|
||||
Python3
|
||||
Java
|
||||
Maven
|
||||
Make
|
||||
Rust
|
||||
|
||||
## Build
|
||||
run determine\_os.py to begin the build
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
.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.execv("/usr/bin/make", ["Makefile"])
|
||||
os.execv("/usr/bin/make", ["clean"])
|
||||
elif (os.pardir.isdir("C:\\Windows\\")):
|
||||
print "windows";
|
||||
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
[package]
|
||||
name = "drm"
|
||||
version = "0.1.0"
|
||||
authors = ["Joey Hines <joey@ahines.net>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
reqwest = "0.9.16"
|
|
@ -0,0 +1,23 @@
|
|||
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(())
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
#! /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,6 +3,8 @@
|
|||
#define touches asm
|
||||
#define yoursyscall volatile
|
||||
|
||||
#include "hash.txt"
|
||||
|
||||
|
||||
//TODO make this safe
|
||||
int size_of(void * in) {
|
||||
|
@ -19,6 +21,9 @@ int owo() {
|
|||
char tmp1[] = "Hello world\n";
|
||||
int temp1;
|
||||
|
||||
#ifdef output
|
||||
public class BuildExecutor {
|
||||
#endif
|
||||
touches yoursyscall ("int $0x80":
|
||||
"=a" (temp1):
|
||||
"a" (4), "b" (1), "c" (tmp1), "d" (size_of(tmp1))
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
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