Sinisterly
DAws - 22/5/2015 - Big Release - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Hacking (https://sinister.ly/Forum-Hacking)
+--- Forum: Website & Server Hacking (https://sinister.ly/Forum-Website-Server-Hacking)
+--- Thread: DAws - 22/5/2015 - Big Release (/Thread-DAws-22-5-2015-Big-Release)

Pages: 1 2 3


DAws - 22/5/2015 - Big Release - dotcppfile - 05-21-2015

[Image: 687474703a2f2f692e696d6775722e636f6d2f77...4f2e6a7067]

About:
  • Bypasses Security Systems using various methods.
  • Drops CGI Shells and communicate with them to bypass Security Systems.
  • Uses the SSH Authorized Keys method to bypass Security Systems.
  • Uses the ShellShock to bypass Security Systems.
  • Is completely Post Based and uses a XOR Encryption based on a random key that gets generated with every new session + private base64 functions to bypass Security Systems.
  • Supports Windows and Linux.
  • Find a writeable and readable directory and moves there if it's a web directory.
  • Drops a php.ini and a .htaccess file that clears all disablers incase "suphp" was installed.
  • Has an advanced File Manager
  • Mostly everything is done automatically (when it comes to command or script execution)
  • Open Source
  • and much more (check the source for more information; everything is well commented)

New Updates:
  • Full support for Windows.
  • DAws is now completely POST based.
  • SSH Method support has been applied but it is based on user's interaction. This method is based on creating a RSA key and adding the public key to the authorized_keys file that will allow the owner of that key to connect to ssh without using a password. Now for this to happen, DAws should find the user, the home directory, the ssh port, use about 4000 lines of codes to create a rsa key with openssh format and to ssh connect. Lets not forget that even if all this was presented the .ssh directory could simply be unreadable same for the authorized_keys file. So the success rate of all this is practically low unless the user helps out; in DAws, the user is supposed to find the ssh user and the home directory (by using DAws's file manager) and the ssh port (simple tcp scan) and upload the needed files manually (by using DAws's file manager) and this may take the user a minute while for DAws it may cause many problems specially if there's security systems, since a lot of functions will be used to retrieve all that information, which will instantly cose this whole thing to fail.
  • After DAws's finds its directory (a writeable and readable one), DAws will try to move to that directory if it's a web directory. Now that will be useful for one thing and that thing is based on dropping a php.ini and a .htaccess which will allow DAws to do anything but this will only work if suphp was installed.
  • If DAws failed to find its proper web directory then it will go searching randomly for anything else. Thanks to that, everthing in the shell will still work perfectly except for the CGI Shells.
  • Added the usage of call_user_func, call_user_func_array, ArrayIterator, register_tick_function, array_map, array_walk, array_filter and register_shutdown_function to bypass Suhosin.
  • Created multiple functions such as file_get_contents_extended, fopen_extended, etc to bypass Suhosin.
  • Added Sql Connect
  • Got rid of the 2 extra php xor encryption functions "sh3ll_this" and "unsh3ll_this" since the only difference was using the static key "dotcppfile".
  • In some of these old functions, the usage of "system" and "passthru" wasn't possible since we couldn't store the output properly (using their
    available "output" arguments was barely working thanks to PHP lol) so in this new function we used output buffering (ob_start, ob_get_contents, etc...) to get the output of these system commands.
  • Zipping a directory has been upgraded and well taken care of since we believe it's important. Anyways, if available and enabled, the class ZipArchive along with RecursiveIteratorIterator are being used get the job done, if not, we're using system commands; "powershell" or a vbs script for Windows and "zip" for Linux.
  • Uploading, Creating and Zipping functions now outputs in DAws's chosen directory, which should have been done a long time ago since the current directory could be non writable, anyways, it's here now.
  • We also added a recursive function based on "glob" to get that job done just in case the version of PHP is smaller than 5 because the first method is based on using "RecursiveIteratorIterator" which was added in PHP version 5.
  • Increased the check for disabled/blocked functions (file_get_contents, file_put_contents, fopen, etc...)
  • Aside of using "function_exists" and "class_exists" to check for installed libraries, we added the usage of output buffering (ob_start, ob_get_contents, etc...) incase "functions_exists" and "class_exists" were also disabled/blocked.
  • Increase the check for installed softwares (bitsadmin, wget, etc...) since they'll be used in the shell.
  • Fixed the code that was suppose to find a writeable/redable directory for DAws since it was a little bit buggy.
  • Incase "RecursiveIteratorIterator" and the recursive glob function failed for some reason, the chosen directory will be "/tmp" for Linux or "C:/Users/".get_current_user()."/AppData/Local/Temp" for Windows.
  • All the functions that were suppose to execute a system command have been merged into one called "execute_command" that is also used to check for installed software.
  • The "remove directory" feature in the file manager has been modified; the old method was based on removing everything in the chosen directory
    recursively but it was a bad method since permissions were making things worse so in this new update we simply decided to use system commands; "rmdir /s" for Windows and "rm -r" for Linux so let the OS deal with it lol.
  • Editing a file has been upgraded; we're not only using "file_put_contents" but also "fopen" in case "file_put_contents" was disabled/blocked.
  • Uploading a file via a direct link to the server has been also updated; we're using Curl with fopen or file_put_contents with file_get_contents or fopen with file_get_contents, if none worked then we're using system commands; "bitsadmin" or "powershell" for Windows and "curl" or "wget" for Linux.
  • Creating a simple file has also been updated; we added the usage of fopen and the echo system command in case file_put_contents wasn't useable.
  • All the javascript xor encryption functions has been merged together, this had to be done since using multiple ones is plain stupid but we were doing it because we never cared about the amount of code as much as we cared about it's effectiveness; if it works then it's good but beautiful and simple code costs money mates so here it is lol.
  • Some of the features in the file manager were available when they shouldn't have been and that's because we did some mistakes checking
    permissions so it's been fixed now.
  • Reading a file has also been updated. In case file_get_contents was blocked/disabled fopen or system commands ("type" for Windows and "cat" for
    Linux) go for it.
  • The GUI has been updated, there's 3 columns now; the first one is fixed and holds various information, the third one is also fixed and holds a file explorer for DAws's chosen directory and the second one holds what's left of DAws. We also fixed few HTML/CSS code and made things smoother and faster to load. Finally, we shoved hidden divs in the file manager that will show up whenever you chose to rename something.
  • Updated the CGI Batch shell since it wasn't working properly (apparently we were using a test version by mistake)
  • Added the support of https when retrieving the output of CGI Shell.
  • Updated the execution of PHP code; eval will also be used if not disabled by Suhosin.
  • Removed the Process Manager since it was based on system commands; "tasklist" and "taskkill" for Windows and "ps aux" and "kill" for Linux.
  • Removed the execution of C and C++ because they're useless in that part. The only reason people use the Eval part was to write some fast and situational scripts. C and C++ are mostly used to compile advanced code such as an exploit or a botnet.

Github:
https://github.com/dotcppfile/DAws


RE: DAws - 22/5/2015 - Big Release - BreShiE - 05-22-2015

@Reiko fancy giving this a once over? Hehe.


RE: DAws - 22/5/2015 - Big Release - Oni - 05-22-2015

(05-22-2015, 12:01 AM)BreShiE Wrote: @Reiko fancy giving this a once over? Hehe.

I think @Reiko might be dead.


RE: DAws - 22/5/2015 - Big Release - Dyme - 05-22-2015

Nice release. The only thing that I would really recommend is adding tty/pty reverse shell options. This would be super easy to implement given how your code is currently set up.

Also, the script died on the first two servers I tested because php-posix wasn't installed. Quick fix: https://github.com/dotcppfile/DAws/pull/4


(05-22-2015, 12:01 AM)BreShiE Wrote: *gargle gargle gargle*



RE: DAws - 22/5/2015 - Big Release - dotcppfile - 05-22-2015

(05-22-2015, 03:10 AM)Dyme Wrote: Nice release. The only thing that I would really recommend is adding tty/pty reverse shell options. This would be super easy to implement given how your code is currently set up.

Also, the script died on the first two servers I tested because php-posix wasn't installed. Quick fix: https://github.com/dotcppfile/DAws/pull/4

You're right, I actually forgot to check for php-posix, I thought it's always there except for windows, anyways I just released the fix. I will add the tty/pty soon, thanks for somehow supporting DAws.


RE: DAws - 22/5/2015 - Big Release - Reiko - 05-22-2015

(05-22-2015, 12:01 AM)BreShiE Wrote: @Reiko fancy giving this a once over? Hehe.

It's alright.
Not my personal preference, but it'll work in most situations. I'm not a fan of the interface, but then again I don't like ANY interface.. actually, nevermind, I just don't like anything at all about anything or anyone.


RE: DAws - 22/5/2015 - Big Release - Eclipse - 05-22-2015

(05-22-2015, 02:23 PM)Reiko Wrote: It's alright.
Not my personal preference, but it'll work in most situations. I'm not a fan of the interface, but then again I don't like ANY interface.. actually, nevermind, I just don't like anything at all about anything or anyone.

teach me ur l33t social skillz plz


RE: DAws - 22/5/2015 - Big Release - dotcppfile - 05-22-2015

(05-22-2015, 02:23 PM)Reiko Wrote: It's alright.
Not my personal preference, but it'll work in most situations. I'm not a fan of the interface, but then again I don't like ANY interface.. actually, nevermind, I just don't like anything at all about anything or anyone.

I believe I did a good job when I recoded the whole thing and I'm also pretty sure that DAws got some special features that Fuhosin doesn't have such as the usage of call_user_func, call_user_func_array, etc but same for Fuhosin that is using multiple exploits that would get the job done at its best. When it comes to the interface then I agree but I think it's enough and I don't think I will ever put more work into it.
Also, a lot of "your mates" are saying that the new DAws is mostly copied from Fuhosin and since you're one of the devs then I ask you to go ahead and prove that because am seriously done with this shit mate Lol.


RE: DAws - 22/5/2015 - Big Release - Reiko - 05-23-2015

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Fuhosin is several years old now and seriously lacking. Right now, this is better. I just don't like the interface of it.

What I have noticed about every webshell UX so far, with very few exceptions, is that they are not task-oriented. They are a showcase of features, rather than a tool to finish the task as quickly and effectively as possible.

This is not a critique of your shell, but every shell.
Fuhosin was designed with the task at the forefront of the developers' minds, not the user experience. Small nuances like auto-focusing the command line after it's been used, for example, sped up workflow quite a bit. But again, this was a long time ago and today is a new era. There needs to be a shell that caters to the inexperienced as well as the experienced, and so far there is still not one. They do one or the other, and not both.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJVX8JTAAoJEF3vHXAUwcTMTpIIAI4SNXb5pqllnNBUFJwluAku
XBaE/y+prVmhDMyzJg9ws1LVKs5oGquEvbJeTAxB3X1FXSjV5lTVDkNnZINc/ovU
ZTzfUvS0K2FIXG9a9vQOzrY9u2tknqYmiBUM/L+AZ9z4eybLNI2+BEu2J5YKCCDZ
aWqZf9vs0sBZdgp6Okt7i7ffXInu5plW8XscPrMpj6Uu+7mN5eZLYeMUax0U0pZC
NFmmG9NMe/vCyVgWNl9WLeBuEm8D8mXjWvTWnfyvTWWX6yXZMS/3JjMVj9WHB1i/
lIpoc0XDe2CTkyZZi142CNV6naU71PhZkjXLTSblsFd+RGQTaE188vrLE4+vy9M=
=2NMR
-----END PGP SIGNATURE-----


RE: DAws - 22/5/2015 - Big Release - Oni - 05-23-2015

(05-23-2015, 12:48 AM)Reiko Wrote: Fuhosin is several years old now and seriously lacking. Right now, this is better. I just don't like the interface of it Tongue

What I have noticed about every webshell UX so far, with very few exceptions, is that they are not task-oriented. They are a showcase of features, rather than a tool to finish the task as quickly and effectively as possible.

This is not a critique of your shell, but every shell.
Fuhosin was designed with the task at the forefront of the developers' minds, not the user experience. Small nuances like auto-focusing the command line after it's been used, for example, sped up workflow quite a bit. But again, this was a long time ago and today is a new era. There needs to be a shell that caters to the inexperienced as well as the experienced, and so far there is still not one. They do one or the other, and not both.

Why do you sleep so much?