Jump to content
Hak5 Forums

Search the Community

Showing results for tags 'php'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Talk
    • Everything Else
    • Gaming
    • Questions
    • Business and Enterprise IT
    • Security
    • Hacks & Mods
    • Applications & Coding
    • Trading Post
  • WiFi Pineapple
    • WiFi Pineapple TETRA
    • WiFi Pineapple NANO
    • WiFi Pineapple Mark V
    • WiFi Pineapple Mark IV
    • Pineapple Modules
    • WiFi Pineapple University
    • WiFi Pineapples Mark I, II, III
  • Hak5 Gear
    • Bash Bunny
    • Packet Squirrel
    • LAN Turtle
    • USB Rubber Ducky
  • Hak5 Shows
    • Hak5
    • HakTip
    • Metasploit Minute
    • Threatwire
  • Community
    • Forums and Wiki
    • #Hak5
  • Projects
    • SDR - Software Defined Radio
    • Community Projects
    • Interceptor
    • USB Hacks
    • USB Multipass
    • Pandora Timeshifting

Found 9 results

  1. I need help...

    Hi, i have gone through the tutorials for the evilportal module, and now wanted to create a portal on my own for my needs.... I followed the tutorial from frozenjava (which was posted in the forums quite some time ago...), but im having trouble "bending" the code for my needs (basiclly im trying to: get input from "user" and "pass" text field from index.php and print it to a file in /www )... code in index.php: <snip> code in capture.php: <?php $user = $_GET["user"]; $pass = $_GET["pass"]; $redir = $_GET["redir"]; $file = fopen("stored.txt", "a"); fwrite($file, $user . "\n"); fwrite($file, $pass . "\n"); fclose($file); echo '<script type="text/javascript">window.location = "' . $redir . '"</script>'; ?> I think im messing things up with the variables, but im very inexperienced thus i need some help... (oh btw: i didnt get that myportal.php replaced capture.php (i think) at first, so that i manually created my captured.php...) Thanks in advance ;)
  2. Python server not continuous on BB

    Hey all, I've got a problem with my python server. The Bash Bunny doesn't want to handle it forever, so it seems to stop handling after about 5 seconds (or shutting it down, can't tell which). The exact same code works locally on my computer (python script that runs a simple SocketServer), and it runs forever (using httpd.serve_forever()), however the BB doesn't want to run it forever. Any ideas why the BB stops handling? EDIT: Just for those that are interested, the browser error says "Site cannot be reached; connection was reset (ERR_CONNECTION_RESET)".
  3. Hey, I am trying to download a folder (not a .zip) from a GitHub repository and save it the contents to a local folder from inside PHP/JavaScript. The contents are other folders and text files. I know how to download specific files or zips from GitHub but downloading a folder that has other folders in it...Would be easier to just download the .zip of it but unfortunately it is a folder, not a .zip. Any possible way anyone can think of to achieve this? Would be great :)
  4. I started learning PhP recently and I am trying to create a social network for practice, I have got signup login and user homepage figured out what I can't seem to think about is the logic behind adding friends and blocking people. I tried looking it up and all the answers were a little too complicated for me to understand so if someone could please help me and explain the logic behind this would be a great help. Thank you.
  5. I am trying to create a chat function for my website and I just wanted to know whether it's a good idea to store the history in a txt file. I wanted to know wheater it would create extra load on the server and if there are any other means of storing data for storing chat data please do suggest them also I tried to store data in mysql directly, what I was doing (on localhost) was creating different tables for storing chats in the Tables, for example if user1 texts user2 the Table would be user1:user2 and then the rest of the chat would be a database entry. Any help would be really appreciated. If there are any disadvantages of storing chat data in txt form could you please write that down as well? Thanks a lot.
  6. Userhompage

    I am trying to create a website where people can create an account but I am not able to figure out how do I display the user information. I mean should I create separate php files for each and every user or should I just make one file with headers that'll change the user information according to their session id. I hope you get what I am trying to say. Can anyone help me out.
  7. Hi! I've got some more questions about file-upload bypassing techniques. I know how to bypass $_FILES["myfile"]["type"] by modifying 'content-type' in Burpsuite. But I don't know how to bypass pathinfo() or getimagesize(); In this example code: <?php $target_dir = "uploads/"; $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); $uploadOk = 1; $imageFileType = pathinfo($target_file,PATHINFO_EXTENSION); // Check if image file is a actual image or fake image if(isset($_POST["submit"])) { $check = getimagesize($_FILES["fileToUpload"]["tmp_name"]); if($check !== false) { echo "File is an image - " . $check["mime"] . "."; $uploadOk = 1; } else { echo "File is not an image."; $uploadOk = 0; } } ?> Is it possible to bypass the two, or just one of the two? So to upload a basic PHP-shell. Just to get a basic system() shell. Thanks!
  8. I have setup and confirmed the funcitonality of this payload via tcpdump; but the Invoke mimikatz payload's "rx.php" fails to create .creds files. Confirmed appropriate permissions on the php script for www-data. Still nothing is created and no creds are captured. I can see them get sent to the server via packet capture; but if that's not running I don't ever see the creds files the rx.php script is supposed to create.
  9. How to work with image files ?

    Im making some test pages on the Nano, but no matter how i structure the image address, images won't load. Currently testing pages in /www. PHP Processes, writes files, CSS references, but images – won't load. An image will load locally, and if i call it in the browser like: http://172.16.42.1/testSite/image.png it will load in the browser from the nano, but that same that address in a page won't load it. Even if the image is in the same directory and addressed like src="image.png". Firmware 1.0.5, Have reset and reflashed already. Is there a better/proper way to use images/test pages? Maybe something obvious Im missing? Thanks in advance! :)
×