Jump to content

Landing Page + SSH help?


Dynamite
 Share

Recommended Posts

I've been trying to get a landing page in the format of: files folder, control.php, favicon.ico and index.html to work on the pineapple. It works perfectly on normal hosting. I assumed that it would need the source files in the etc/pineapple folder and the index.html code would need to be entered into the advanced section of the management API manually...

When I SSH into the pineapple however, I get this issue:

root@Pineapple:/etc/pineapple# ls
control.php           pineapple.db          tracking_list
favicon.ico           pineapple_version     tracking_script
files                 sb.zip                tracking_script_user
landingpage.php       spoofhost
pineap_log_location   ssid_file
root@Pineapple:/etc/pineapple# cd files
-ash: cd: can't cd to files
root@Pineapple:/etc/pineapple# chmod -R 777 *
root@Pineapple:/etc/pineapple# ls
control.php           pineapple.db          tracking_list
favicon.ico           pineapple_version     tracking_script
files                 sb.zip                tracking_script_user
landingpage.php       spoofhost
pineap_log_location   ssid_file
root@Pineapple:/etc/pineapple# cd files
-ash: cd: can't cd to files <<<<<<ISSUE?<<<<<<<
root@Pineapple:/etc/pineapple#

 

1) Can somebody confirm this isn't indicative of a fault?

2) If i'm on the right track, can somebody tell me how to accomplish it...if i'm not, can somebody tell me a better way? I figure maybe Evil Portal?

Thanks

Link to comment
Share on other sites

How big was the zip file?

Please keep in mind that the WiFi Pineapple onyl has ~1.2MB of free space after a flash. You might need to put all the files on the SD card and symlink them. If you are now stuck, you might need to relfash because you have no space left on the device (not even enough to remove the files).

Just a hunch, it could be something else.

Link to comment
Share on other sites

4 minutes ago, Dynamite said:

Ah...that didn't occur to me. That's likely the issue. Zip is 181kb. Hmm

As for actual structure, placing the source files there for the management>advanced landing page code to call from is correct?

Filesystem                Size      Used Available Use% Mounted on
rootfs                    2.2M      1.2M      1.0M  53% /
/dev/root                12.5M     12.5M         0 100% /rom
tmpfs                    29.9M    108.0K     29.8M   0% /tmp
/dev/mtdblock3            2.2M      1.2M      1.0M  53% /overlay
overlayfs:/overlay        2.2M      1.2M      1.0M  53% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda                939.8M    267.3M    672.4M  28% /sd

Seems to be fine currently...but i'm glad you mentioned it, as i had forgotten about the limited space and would have filled it too much eventually.

Link to comment
Share on other sites

While i'm just crossing off possibilities...

<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="files/flexslider.css">
<link rel="stylesheet" type="text/css" href="files/main_v3.css">
<link rel="stylesheet" type="text/css" href="files/ie.css">

should these files/ references be different from from the configuration landing page be different? From regular hosting, it's all in once placed and called locally with index.html/php. In Pineapple, the configuration landing page seems to populate landingpage.php...so is there a difference in the location? files/ > etc/pineapple/files?

Link to comment
Share on other sites

On 10/25/2016 at 3:50 AM, Sebkinne said:

How big was the zip file?

Please keep in mind that the WiFi Pineapple onyl has ~1.2MB of free space after a flash. You might need to put all the files on the SD card and symlink them. If you are now stuck, you might need to relfash because you have no space left on the device (not even enough to remove the files).

Just a hunch, it could be something else.

Today I tried flashing in case that was the issue...still won't let me cd to multiple default files (before adding anything extra, to insure it's not a memory issue). Even if i attempt to change permissions, it gives the same "can't cd to xxx" response.

Link to comment
Share on other sites

On 10/25/2016 at 3:39 AM, Dynamite said:

I've been trying to get a landing page in the format of: files folder, control.php, favicon.ico and index.html to work on the pineapple. It works perfectly on normal hosting. I assumed that it would need the source files in the etc/pineapple folder and the index.html code would need to be entered into the advanced section of the management API manually...

When I SSH into the pineapple however, I get this issue:

root@Pineapple:/etc/pineapple# ls
control.php           pineapple.db          tracking_list
favicon.ico           pineapple_version     tracking_script
files                 sb.zip                tracking_script_user
landingpage.php       spoofhost
pineap_log_location   ssid_file
root@Pineapple:/etc/pineapple# cd files
-ash: cd: can't cd to files
root@Pineapple:/etc/pineapple# chmod -R 777 *
root@Pineapple:/etc/pineapple# ls
control.php           pineapple.db          tracking_list
favicon.ico           pineapple_version     tracking_script
files                 sb.zip                tracking_script_user
landingpage.php       spoofhost
pineap_log_location   ssid_file
root@Pineapple:/etc/pineapple# cd files
-ash: cd: can't cd to files <<<<<<ISSUE?<<<<<<<
root@Pineapple:/etc/pineapple#

 

1) Can somebody confirm this isn't indicative of a fault?

2) If i'm on the right track, can somebody tell me how to accomplish it...if i'm not, can somebody tell me a better way? I figure maybe Evil Portal?

Thanks

Everything fixed. For those who may need answers later...

1) Scp fixed this issue, whereas before I used wget. Not sure why. Still can't cd to some files, even though far as i can tell I should be able to, but the ones I was working in were accessible.

2) I couldn't get the management api landing page to pull the assets. it would only use the raw code in the landing page entry box. Instead, I made a portal in Evil portal...and copied all of the landing page files to the folder it made and removed the default template files EvilPortal makes when a portal is created. Activated and it worked fine.

Also, note to mod: I didn't realize before, this is Mk V section. I'm using a Nano, so I made this in the wrong section by accident.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...