tron-diasporapsycofr

Drakkar Kubo0

Jan 10th, 2025 (edited)
144
0
Never
12
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.47 KB | Source Code | 0 0
  1. #Dockerfile for image Drakkar_ipfs update: 36161998
  2. #Use: docker run -d -p 5001:5001 -p 8080:8080 -p 8000:8000 -p 4001:4001 -v ipfsStorage:/root/.ipfs -v "$(pwd)":/var/www/html --name php-ipfs-kubo0 php-ipfs-kubo0;
  3. FROM debian:bullseye-slim
  4.  
  5. # Install necessary dependencies, including PHP and curl
  6. RUN apt-get update && apt-get install -y \
  7. curl tar php \
  8. && echo "Dependencies installed."
  9.  
  10. # Copy Kubo (formerly Go-IPFS) tarball from the host project directory into the container
  11. COPY kubo_v0.14.0_linux-amd64.tar.gz /tmp/
  12.  
  13. # Extracting Kubo (IPFS) version v0.14.0 tarball...
  14. RUN tar -xvzf /tmp/kubo_v0.14.0_linux-amd64.tar.gz -C /tmp/ \
  15. && mv /tmp/kubo/ipfs /usr/local/bin/ \
  16. && chmod +x /usr/local/bin/ipfs \
  17. && rm -rf /tmp/kubo /tmp/kubo_v0.14.0_linux-amd64.tar.gz \
  18. && echo "Kubo (IPFS) installed."
  19.  
  20. # Expose the default IPFS API, Gateway, and PHP ports
  21. EXPOSE 5001
  22. EXPOSE 8080
  23. EXPOSE 8000
  24. EXPOSE 4001
  25.  
  26. # Copy the start.sh script and make it executable
  27. COPY start.sh /start.sh
  28. RUN chmod +x /start.sh
  29.  
  30. # Set working directory (for PHP server)
  31. WORKDIR /var/www/html
  32.  
  33. # Run the script when the container starts
  34. CMD ["/start.sh"]
  35.  
  36.  
  37. Script: start.sh
  38. #!/bin/bash
  39. #update: 36161998
  40.  
  41. HOST_DOCKERFILE_PATH="$(pwd)/Dockerfile"
  42. HOST_START_SH_PATH="$(pwd)/start.sh"
  43. HOST_LOG_PATH="$(pwd)/startup_log.txt"
  44.  
  45. CONTAINER_HOME_DOCKERFILE="/home/Dockerfile"
  46. CONTAINER_HOME_STARTUP="/home/start.sh"
  47. CONTAINER_HOME_LOG="/home/startup_log.txt"
  48.  
  49. # Function to write logs to both the host log file and standard output
  50. log_message() {
  51. echo "$1" | tee -a "$HOST_LOG_PATH"
  52. }
  53.  
  54. # Check if the volume ipfsStorage exists
  55. log_message "Checking if volume ipfsStorage exists..."
  56. if ! docker volume inspect ipfsStorage > /dev/null 2>&1; then
  57. log_message "Volume ipfsStorage does not exist. Creating it now..."
  58. docker volume create ipfsStorage
  59. else
  60. log_message "Volume ipfsStorage exists."
  61. fi
  62.  
  63. # Ensure correct file permissions for /mnt/ipfsStorage
  64. log_message "Ensuring correct file permissions for /mnt/ipfsStorage..."
  65. sudo chmod -R 700 "$volume_mountpoint"
  66. sudo chown -R $(id -u):$(id -g) "$volume_mountpoint"
  67.  
  68. # Initialize IPFS if not already initialized
  69. log_message "Checking if IPFS is initialized..."
  70. if [ ! -f "$volume_mountpoint/config" ]; then
  71. log_message "IPFS is not initialized. Initializing now..."
  72. ipfs init --profile server
  73. else
  74. log_message "IPFS is already initialized."
  75. fi
  76.  
  77. # Remove the repo.lock file if it exists (to avoid lock conflicts during startup)
  78. log_message "Checking for repo.lock to avoid conflicts..."
  79. lock_file="$volume_mountpoint/repo.lock"
  80. if [ -f "$lock_file" ]; then
  81. log_message "Removing repo.lock file to avoid conflicts..."
  82. rm -f "$lock_file"
  83. fi
  84.  
  85. # Configure IPFS API and Gateway to listen on 0.0.0.0
  86. log_message "Configuring IPFS API and Gateway to listen on 0.0.0.0..."
  87. ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001
  88. ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080
  89.  
  90. # Start the IPFS daemon in the background
  91. log_message "Starting the IPFS daemon..."
  92. ipfs daemon &
  93.  
  94. # Start the PHP built-in server on port 8000
  95. log_message "#Give the little birdie a drink, or it'll croak!."
  96. cp "$HOST_DOCKERFILE_PATH" "$CONTAINER_HOME_DOCKERFILE"
  97. cp "$HOST_START_SH_PATH" "$CONTAINER_HOME_STARTUP"
  98. log_message "#Starting the PHP server on port 8000 ... Startup process complete."
  99. cp "$HOST_LOG_PATH" "$CONTAINER_HOME_LOG"
  100.  
  101. #Remove the host log file
  102. rm -f "$HOST_LOG_PATH"
  103.  
  104. php -S 0.0.0.0:8000 -t /var/www/html
Tags: DrakkarKubo0
Advertisement
Comments
  • Bazzsaw81
    170 days
    # CSS 0.78 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://rawtext.host/raw?44lh4m
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 38% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without any verification from Swapzone — instant swap).
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment