How to share files in BackTrack 5 using apache2 02-19-2013, 09:37 PM
#1
1. Open your terminal and create a new directory "files"
2. Change mode for the files folder into 755
3. Change the ownership into www-data
4. Type
![[Image: ViD1idg.jpg]](http://i.imgur.com/ViD1idg.jpg)
5. Now we need to activate the apache server by running
( If you didn't have apache2 installed, run apt-get install apache2 command )
6. Now our web server is up, so let's copy some file into our files folder.
![[Image: TivFWqC.jpg]](http://i.imgur.com/TivFWqC.jpg)
( /root/Desktop/ => your file location ; /var/www/files => your folder used for sharing )
7. For accesing the files folder, check your Backtrack ip adress by running " ifconfig " command.
8. Open your ip in windows or everywhere you want with web browser.
![[Image: 79ZQzkD.jpg]](http://i.imgur.com/79ZQzkD.jpg)
To stop your apache server, run " service apache2 stop "
Happy sharing ! :lol:
Code:
mkdir /var/www/files
2. Change mode for the files folder into 755
Code:
chmod -R 755 /var/www/files/
3. Change the ownership into www-data
Code:
chown -R www-data:www-data /var/www/files/
4. Type
Code:
ls -la /var/www/ | grep files
![[Image: ViD1idg.jpg]](http://i.imgur.com/ViD1idg.jpg)
5. Now we need to activate the apache server by running
Code:
" service apache 2 start "
( If you didn't have apache2 installed, run apt-get install apache2 command )
6. Now our web server is up, so let's copy some file into our files folder.
![[Image: TivFWqC.jpg]](http://i.imgur.com/TivFWqC.jpg)
( /root/Desktop/ => your file location ; /var/www/files => your folder used for sharing )
7. For accesing the files folder, check your Backtrack ip adress by running " ifconfig " command.
8. Open your ip in windows or everywhere you want with web browser.
![[Image: 79ZQzkD.jpg]](http://i.imgur.com/79ZQzkD.jpg)
To stop your apache server, run " service apache2 stop "
Happy sharing ! :lol:
Created by LiXon for HackCommunity.com - Enjoy ! ![Biggrin Biggrin](https://sinister.ly/images/smilies/set/biggrin.png)
![Biggrin Biggrin](https://sinister.ly/images/smilies/set/biggrin.png)
![[Image: IRlys.png]](http://i.imgur.com/IRlys.png)