Toroto008
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # ENOWARS Information ## General info [Team IPs](https://pastebin.com/raw/SEPS13Fm) Our vulnbox: `10.1.66.1`. Your SSH public key should already be there so you can ssh in as root. If not, join the [Organizers GitHub org](https://github.com/0rganizers) and ping `gallileo#5466`. Flag format: `ENO[A-Za-z0-9+/=]{48}` ## Moloch (tcpdumping) access via: `ssh -L 8005:localhost:8005 root@49.12.72.122` Then just connect http://localhost:8005 user:`moloch` password: `gofmyr-4qipKe-coqwev` ## Services ### activititracker (4242) /services/activitytracker/docker-compose.yml some webserver/blog thingy written in rust ### medchat (8010, 8011) /services/medchat/docker-compose.yml Probably backend in PHP. ### 3xam (8220, 8221) /services/3xam/docker-compose.yml The frontend communicate with the backend with websockets. The packets sent over the websockets are encrypted. The encryption is done in webassembly. Looks like there is a custom ORM. There are also unit test included in the backend-internal folder `app/orm/model.py` looks like SQL injection --> sql queries with "%s".format(stuff) Flags are the usernames, we can get them trhough the scoreboard probably Log of the checker putting the flag: ```INSERT INTO users (`user_type_id`, `name`, `pubkey`) VALUES (2, ENOAQAAAAAAAABCAAAADgAAAKtAV+Z3GdB4vzbk/l2G3u9/VLEb, O4oeDJB2deX/qA6JJk7EzViHA/cwULW6ODB/yd/dtWA=)``` Flags in 3 places: - in user table (name field) - in answers table - in the logger ### shatranj (8080, 8081, 49153), Owner: dex Server with front and backend, where backend is in java with gradle as build system frontend in react Probably is a chess multiplayer game. flags are winners of past games Can be accessed through GET /api/pastgames /services/shatranj/docker-compose.yml ### orcano (53273), Owner : aylmao Crypto stuff (only requirement pycryptodome and otp references) /services/orcano/docker-compose.yml Two files : - A python file - A dolphin file (allegedly) MP me for the files on Discord - Command line interface for the clients - Running asynchronously Saving a lot of files in the _data_ folder ### file-share (8001, 49154), Owner: galli-leo /services/file-share/docker-compose.yml C#, webassembly, blazor Possible DOS: can convert image files up to INT32_MAX (probably not allowed to exploit :() **PATCHED** Also patched for normal file upload, max is now 10MB Possible vuln in conversion process: filenames not escaped when passed to imagemagick Maybe not, not entirely sure if escaping is correct Ok filenames not escaped, leading to path traversal, I patched it a bit shittily but should hopefully work. Uses jwt for auth: ```json { "alg": "RS256", "kid": "Development", "typ": "at+jwt" } ``` Development sounds bad lol Seems like Development is ok, should create a fresh key every reboot Requests to 10.1.66.1:8001/api/fileshare/supersecret.svg not sure if that is flag or not Yep contains flag ### stldoctor (9090), Owner: Nspace `/services/stldoctor/docker-compose.yml` Looks like to be something working with stl files in C. Looks like a pwn challenge. [STL](https://en.wikipedia.org/wiki/STL_(file_format)) is a file format for 3D CAD models. One flag is saved both in the model file and sometimes in the info file. The flag in the model file is the name of the solid. The command that gives you access to those is search. You can log in once and when you do that, the result directory is set to $RESULTDIR/.{hash of password}. YOu can upload models without logging in (models are then saved in $RESULTDIR) or as a logged in user (in which case they are saved in $RESULTDIR/.{hash of password}). When logged in the name of a model is .{model hash}-{timestamp} When NOT logged in the name of a model is {model hash}-{timestamp} When saving a model the model is written to {modeldir}/"model", the infor to {modeldir}/"info" Search * ask you for a model name * hash the model name * opens {RESULTDIR}/.index and check if any of the lines matches the hash, if so prints the line and increments reflen * if no matching lines, exit * asks you to enter a name and then gives you that file. the name can be hex chars, dot and dash * handle_download({RESULTDIR}/{name}) possible path traversal here * first of all we can get a model uploaded by a non-logged in user as long as we know its hash and timestamp * handle_downloads checks if there is an info and prints it -> flag here * so basically need a way to get the model hashes/timestamps * the hash that is used to save the model is the The first bug is that the function that reads the model info back compares the return value of `getc` with EOF so we can trick it into believing that it's EOF by adding `\xff` ### gosship (2222), Owner: cyanpencil Is a (probably) a chat service in go. /services/gosship/docker-compose.yml * connect to it with ssh `<user>@10.1.66.1 -p 2222` * `<user>` can be chosen arbitrarily but on the first connect, the first public key ssh finds is associated with the chosen username is this based on [ssh-chat](https://github.com/shazow/ssh-chat)? ## Destructive Ranch [WebInterface](http://ranch.anize.rs/) for it, should your DNS not work use [this IP](http://34.65.235.194/) directly. The login username is: _root_ and the password: _L6ingx@R&bnn9&n4_ [GitHub:](https://github.com/0rganizers/DestructiveRanch) for documentation for how to use the start_sploit.py and so on. ## Firewalling The following DNATS are being set up: tcp dpt:9090 to:172.17.5.2:9000 tcp dpt:53273 to:172.17.3.2:53273 tcp dpt:2222 to:172.17.8.2:2222 tcp dpt:8220 to:172.17.9.5:80 tcp dpt:8221 to:172.17.9.6:5000 tcp dpt:8010 to:172.17.1.4:8080 tcp dpt:8011 to:172.17.1.5:80 tcp dpt:8005 to:172.17.10.2:8005 tcp dpt:8001 to:172.17.4.4:80 tcp dpt:49156 to:172.17.4.4:80 tcp dpt:4242 to:172.17.6.3:4242 tcp dpt:49168 to:172.17.19.2:3306 # ephemeral mysql, should be removed after patch tcp dpt:8081 to:172.17.20.2:80

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully