mushorg / glastopf

Web Application Honeypot
http://glastopf.org
551 stars 172 forks source link

How to make my own web template? #276

Closed Bi3g0 closed 7 years ago

Bi3g0 commented 7 years ago

I want to make my own web template to collect webshells. But I have no idea how to do. Can someone help me? I have successfully installed the glastopf: image

glaslos commented 7 years ago

In Glastopfs data directory which is created during the initialization you can find a template file called base.html modifying this should give you the desired result.

Bi3g0 commented 7 years ago

Can I remove the base.html or I can only modify the base.html? image If I can only modify the date between %%? Sorry,my english is not good.

glaslos commented 7 years ago

The other way around. Don't change any of the {% block_name %} ... {% endblock %} elements in the template. You can change all HTML in that file.

Bi3g0 commented 7 years ago

I tryed to do that but it's still a problem. It seems like glastopf can only show one page. for example, the page has another url, when clicked the Web page can't jump. eg base.html: `

  • About
  • ` about-1.html,about-2.html,about-3.html are under the same directory.When clicked the About 1,it can't jump to about-1.html.

    Bi3g0 commented 7 years ago

    In fact, I just need a page, this page can be used to upload files. But how do I link this page to MHN? MHN will record and I will get the uploaded file when it is found that there is an attacker to upload the file.

    glaslos commented 7 years ago

    Yes, the only page you can serve is Glastopf is the base.html if you want a more complex page, you have to use SNARE. If you want to use MHN, create an issue with them to add SNARE to MHN.

    glaslos commented 7 years ago

    Closing this for now.

    camaro23 commented 5 years ago

    Hey glaslos,

    How can I make change the text at the very top of the webpage to text I want to display? For example, in Bi3g0's screenshot where the text "curriculum vitae" is.

    Thanks