From 9a927ff1aa67322f055ac882a16ba058d1967484 Mon Sep 17 00:00:00 2001 From: zombie Date: Fri, 13 May 2022 14:41:37 -0400 Subject: [PATCH] the drm code works now --- LICENSE | 38 +--------------------------- a.out | Bin 0 -> 16432 bytes main.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+), 37 deletions(-) create mode 100755 a.out create mode 100644 main.c diff --git a/LICENSE b/LICENSE index 19d7e1e..797a3a5 100644 --- a/LICENSE +++ b/LICENSE @@ -1,37 +1 @@ -The Sleepycat License Copyright (c) 1990-1999 Sleepycat Software. All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - - - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - - - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - - Redistributions in any form must be accompanied by information on how to obtain complete source code for the DB software and any accompanying software that uses the DB software. The source code must either be included in the distribution or be available for no more than the cost of distribution plus a nominal fee, and must be freely redistributable under reasonable conditions. For an executable file, complete source code means the source code for all modules it contains. It does not include source code for modules or files that typically accompany the major components of the operating system on which the executable file runs. - -THIS SOFTWARE IS PROVIDED BY SLEEPYCAT SOFTWARE ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL SLEEPYCAT SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - -Copyright (c) 1990, 1993, 1994, 1995 The Regents of the University of California. All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - - - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - - - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - - Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - -Copyright (c) 1995, 1996 The President and Fellows of Harvard University. All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - - - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - - - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - - Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY HARVARD AND ITS CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL HARVARD OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +all rights reserved diff --git a/a.out b/a.out new file mode 100755 index 0000000000000000000000000000000000000000..6b165327eab60afb9d743729cb5199267bcd6dc2 GIT binary patch literal 16432 zcmeHOYiu0V6~4R4216cpLJ~{@WT7N-055S~O-n=8iJfe!gg_oZD_}C-9ot*>#qJnv z)Pjov#R@?ws@jNB6@IjhR3QaXMM$WUlOTt*QX2|CQmDY9M0J3+=G8idX8WCc&son7 zYgG7ARn^>N=G^n0^PPL=%$@O_*}3<(Z`l|Qg_M*j>Uu?5e}h5dY&f)rD-dzDM$N?j zGIgn%27Ri=j6H4ytfrg_SIauar$7>~kt#LhB?eX^rH3SmH(6;o&san%J`UnV$i%u| z{*;4?6nmw;D3MX3dS8)k+oR=rbi3<0NV1mY(H_kkfBix=y z$tQK6wl$njzl_61C9d~M`FXv}^UF5&7fEeU*>T!UeUbKVWL|Gnhf#icje(U&Y40ZR zBvtJ4nL zu+f;>bi*zc?pH&E2|uJlReG3p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=l3&6`b4B5=VZO*XY~CV&p9EWtikIKZe34g* zBg?5ieY1}*^CFQ^pTD0^>x2G|xu^7B=Hnve_<34fnZHX|8x@+13t#5zBI_u*D0GZe zmE)Ira~c>OvhZd8FY+L4-ooK3&|Rp}+*vpLO$)|%lu2EJa>w}FPwUo`I3JX zWlxs(uqs0GCpyhbsQ<#BZ2hVD``bU^;~$I~Pmz>gZ}GSPGK{mZ@nv6`|I7MRzrW}r z-vGDX!? zP1w9e_#)53=;f<8doMFmR7NZ93qK69mmg$P`QZznl5DGQY`p!lOcD zIg{IG_li~c{%02ID;2Mlv1cr1U*Ld;xP7`0(^OiHTaN2|VA6NPH2df(BYS +#include +#include +#include +#include + +int *tits = 43; + +uint8_t memory[1024]; +uint8_t opcode; +uint8_t destination; +uint8_t source1; +uint8_t source2; +uint8_t sourceimm; + +uint16_t tmpip = 0; + +int thomasgay() { + memory[1] = 0x01; //ip + memory[2] = 0x00; //ip2 (i think this is big endianness) + memory[256] = 1; + memory[257] = 5; + memory[258] = 0; + memory[259] = 0; + memory[260] = 69; + + int Halted = 0; + while (!Halted){ + //fetch + opcode = memory[memory[1]*256+memory[2]]; + destination = memory[(memory[1]*256+memory[2])+1]; + source1 = memory[(memory[1]*256+memory[2])+2]; + source2 = memory[(memory[1]*256+memory[2])+3]; + sourceimm = memory[(memory[1]*256+memory[2])+4]; + printf("asd %d %d %d %d %d asd", opcode, destination, source1, source2, sourceimm); + switch (opcode) { + case 1: + if (!source1 && !source2) { + memory[destination] = sourceimm; + } + break; + } + break; + + } + + return 0; +} + +int main () { + if (strlen(getenv("HOME")) != 12) { + puts("Segmentation fault (core dumped)"); + return 0; + } else { + asm volatile ("mov $20, %rax"); + puts("first check pass"); + goto fucktits; + return 1; + } + + if (*tits > 93) { +fucktits: + puts("we finally landing"); + clock_t prevtime, currenttime; + prevtime = clock(); + puts("a"); + currenttime = clock(); + if (currenttime - prevtime > 8) { + //GDB USER REEEEEEEEEE + tits = NULL; + puts(tits); + } + thomasgay(); + } +} +