Symlinking tutorial | Manual & skidded 05-13-2014, 03:56 PM
#1
![[Image: res0pij.png]](http://i.imgur.com/res0pij.png)
Understanding Symlink attacks.
Greetings, members of Sly.
I received a lot of questions on how I managed to 'hack' these one hundred websites. That's right, I used symbolic links to perform the attack.
Some of you or even most of you have probably heard of 'Symlink'. Symlink stands for symbolic link & it's basically a shortcut.
I rarely use this method, but it's fun practice if you can't manage to root the server on the website you shelled.
Symlink reads the /etc/passwd file. /etc/passwd is basically a text database of users who logged into the system.
Manual Symlinking
Requirements.- Browser.
- Internet connection.
- Website shelled at shared hosting.
- weevly
Manual symlinking ain't hard, but it takes some time compared to automatic symlinking.
So first of all fire up your weevly, so we can create a backdoor at the website you have shelled.
![[Image: DSelyyy.png]](http://i.imgur.com/DSelyyy.png)
As you can see in the picture we used 'cd' to locate to our weevely folder & used 'python' to launch our weevely.
Code:
python weevely.py generate skid /root/backdoor.php
Generate - Generates the file.
skid - is our password for the backdoor
/root/backdoor.php - that's our location to the backdoor.php we madeso now use your filemanager/shell & locate to your /root/ (or w/e u used) folder & upload the backdoor.php to the targeted website.
In my case, I uploaded the php weevely backdoor in the folder /tutorial/.
Quote:website.com/tutorials/backdoor.php
So back to the CLI (Command-line-interface),
![[Image: hPPFFOY.png]](http://i.imgur.com/hPPFFOY.png)
Quote:python weevely.py websites.com/tutorials/backdoor.php skidFinally.. our backdoor is complete. As I said earlier you need to be able to read /etc/passwd, so in order to check if it's readable use cat /etc/passwd
skid = our password for the php weevely script.
websites.com/tutorials/backdoor.php = path to backdoor.php you uploaded.
Let's make it a bit more organized, create a new folder called w/e you want.
E.x. mkdir dogs
Now let's move our current position into that folder, cd dogs
Awesome! We're almost done!
Now just create the symlink like this ln -s path to configuration file xyz.txt
Automatic Symlinking
Requirements.- Browser.
- Internet connection.
- Website shelled at shared hosting.
- Symlink script. HERE
So first of all, download the attack script from above & go to your shelled website; if you're just going to try on your hosting just upload a shell or upload the attack script directly w/e floats your boat.
As you can see here, I'm using this shitty shell and am uploading the script named 'retard.php'.
You do the exact same thing in your shell even then we're not using the same shell nor the same website.
![[Image: TEKNESg.png]](http://i.imgur.com/TEKNESg.png)
Alright, so go to your url and type out the path to the php script that you just uploaded.
E.x. www.Russia.ru/retard.php & if you now can see the php script on the website; Good job! You managed to upload your script.
Notice that there are other methods to do symlinking, but this one is plain easy & novice friendly, basically nothing complicated involves this method in doing it.
Your php-script will look almost the same as mine, the only difference between yours & mine is that I deleted some unnecessary Indian stuff on yours. So it's almost identical.
![[Image: vAhIe0i.png]](http://i.imgur.com/vAhIe0i.png)
So as you can see my version has some Indian shit & other retarded gang stuff inside it.
Let's get started with the actual symlinking; First of all press the button called
'use to Generate PHP.ini' ; The button will generate the php.ini file for you.
Secondly press the second button named 'Use to Extract usernames'. This button will extract all the usernames for the symbolic link.
Now another button will appear on the screen,
![[Image: C396Qof.png]](http://i.imgur.com/C396Qof.png)
^ Press that one, I don't know what 'bhaiyu' means, but if you do; good for you.
Now press the 'text/button' called 'view configuration files' or something like that.
Congratulations you've now successfully symlinked a website.

![[+]](https://sinister.li/images/modern/collapse_collapsed.png)

















![[Image: KApAKtG.jpg]](http://i.imgur.com/KApAKtG.jpg)




