Redirect 302 redirect from GET @entry_comment_create (b35b9a)

Security

Token

There is no security token.

Firewall

main Name
Security enabled
Stateless

Configuration

Key Value
provider security.user.provider.concrete.app_user_provider
context main
entry_point App\Security\KbinAuthenticator
user_checker App\Security\UserChecker
access_denied_handler (none)
access_denied_url (none)
authenticators
[
  "two_factor"
  "remember_me"
  "App\Security\KbinAuthenticator"
  "App\Security\FacebookAuthenticator"
  "App\Security\GoogleAuthenticator"
  "App\Security\GithubAuthenticator"
  "App\Security\KeycloakAuthenticator"
]

Listeners

Listener Duration Response
Symfony\Component\Security\Http\Firewall\ChannelListener {#723
  -map: Symfony\Component\Security\Http\AccessMap {#722 …}
  -logger: Monolog\Logger {#783 …}
  -httpPort: 80
  -httpsPort: 443
}
0.00 ms (none)
Symfony\Component\Security\Http\Firewall\ContextListener {#706
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage {#1017 …}
  -sessionKey: "_security_main"
  -logger: Monolog\Logger {#783 …}
  -userProviders: Symfony\Component\DependencyInjection\Argument\RewindableGenerator {#705 …}
  -dispatcher: Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher {#747 …}
  -registered: false
  -trustResolver: Scheb\TwoFactorBundle\Security\Authentication\AuthenticationTrustResolver {#780 …}
  -sessionTrackerEnabler: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage::enableUsageTracking(): void {#703 …}
}
12.29 ms (none)
Symfony\Component\Security\Http\Firewall\AuthenticatorManagerListener {#584
  -authenticatorManager: Symfony\Component\Security\Http\Authentication\AuthenticatorManager {#595 …}
}
0.00 ms (none)
Scheb\TwoFactorBundle\Security\Http\Firewall\TwoFactorAccessListener {#582
  -twoFactorFirewallConfig: Scheb\TwoFactorBundle\Security\TwoFactor\TwoFactorFirewallConfig {#842 …}
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -twoFactorAccessDecider: Scheb\TwoFactorBundle\Security\Authorization\TwoFactorAccessDecider {#581 …}
}
0.07 ms (none)
Symfony\Component\Security\Http\Firewall\AccessListener {#579
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -accessDecisionManager: Symfony\Component\Security\Core\Authorization\TraceableAccessDecisionManager {#937 …}
  -map: Symfony\Component\Security\Http\AccessMap {#722 …}
}
0.00 ms (none)
Symfony\Component\Security\Http\Firewall\LogoutListener {#786
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -options: [
    "csrf_parameter" => "_csrf_token"
    "csrf_token_id" => "logout"
    "logout_path" => "app_logout"
  ]
  -httpUtils: Symfony\Component\Security\Http\HttpUtils {#841 …}
  -csrfTokenManager: Symfony\Component\Security\Csrf\CsrfTokenManager {#1015 …}
  -eventDispatcher: Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher {#747 …}
}
0.00 ms (none)

Authenticators

No authenticators have been recorded. Check previous profiles on your authentication endpoint.

Access Decision

affirmative Strategy
# Voter class
1
"Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter"
2
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
3
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
4
"Symfony\Component\Security\Core\Authorization\Voter\ExpressionVoter"
5
"App\Security\Voter\EntryCommentVoter"
6
"App\Security\Voter\EntryVoter"
7
"App\Security\Voter\MagazineVoter"
8
"App\Security\Voter\MessageThreadVoter"
9
"App\Security\Voter\MessageVoter"
10
"App\Security\Voter\NotificationVoter"
11
"App\Security\Voter\OAuth2UserConsentVoter"
12
"App\Security\Voter\PostCommentVoter"
13
"App\Security\Voter\PostVoter"
14
"App\Security\Voter\UserVoter"

Access decision log

# Result Attributes Object
1 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
2 DENIED moderate
App\Entity\Entry {#1817
  +user: Proxies\__CG__\App\Entity\User {#1894 …}
  +magazine: App\Entity\Magazine {#288
    +icon: Proxies\__CG__\App\Entity\Image {#269 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1406
    +entryCommentCount: 28632
    +postCount: 6
    +postCommentCount: 214
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729583542 {#296
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#260 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#256 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#245 …}
    +entries: Doctrine\ORM\PersistentCollection {#203 …}
    +posts: Doctrine\ORM\PersistentCollection {#161 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#223 …}
    +bans: Doctrine\ORM\PersistentCollection {#140 …}
    +reports: Doctrine\ORM\PersistentCollection {#126 …}
    +badges: Doctrine\ORM\PersistentCollection {#104 …}
    +logs: Doctrine\ORM\PersistentCollection {#94 …}
    +awards: Doctrine\ORM\PersistentCollection {#83 …}
    +categories: Doctrine\ORM\PersistentCollection {#70 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729583596 {#297
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#291
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1882 …}
  +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
  +title: "FOUND file in device by hex content using wxHexEditor"
  +url: null
  +body: """
    Just having a play around, this turned out to be not as clear cut as expected.\n
    \n
    so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
    \n
    I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
    \n
    What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
    \n
    Ok, I managed to do it with dd:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">hello\n
    </span>\n
    ```\n
    \n
    but why can I not find it using wxhexeditor??\n
    \n
    EDIT:\n
    \n
    Duh, I didn’t click that offset needed to be multiplied by the block size.\n
    \n
    If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
    \n
    ![](https://files.catbox.moe/6zvhx0.png)\n
    \n
    Final conclusion:\n
    \n
    After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
    \n
    I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
    \n
    Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 11
  +favouriteCount: 37
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1701250420 {#1853
    date: 2023-11-29 10:33:40.0 +01:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1964 …}
  +votes: Doctrine\ORM\PersistentCollection {#1895 …}
  +reports: Doctrine\ORM\PersistentCollection {#2419 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1388 …}
  +notifications: Doctrine\ORM\PersistentCollection {#1375 …}
  +badges: Doctrine\ORM\PersistentCollection {#1400 …}
  +children: []
  -id: 17506
  -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
  -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1701203579
  +visibility: "visible             "
  +apId: "https://lemmy.nz/post/3824501"
  +editedAt: DateTimeImmutable @1701860652 {#74
    date: 2023-12-06 12:04:12.0 +01:00
  }
  +createdAt: DateTimeImmutable @1701117179 {#2486
    date: 2023-11-27 21:32:59.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
3 DENIED edit
App\Entity\Entry {#1817
  +user: Proxies\__CG__\App\Entity\User {#1894 …}
  +magazine: App\Entity\Magazine {#288
    +icon: Proxies\__CG__\App\Entity\Image {#269 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1406
    +entryCommentCount: 28632
    +postCount: 6
    +postCommentCount: 214
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729583542 {#296
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#260 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#256 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#245 …}
    +entries: Doctrine\ORM\PersistentCollection {#203 …}
    +posts: Doctrine\ORM\PersistentCollection {#161 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#223 …}
    +bans: Doctrine\ORM\PersistentCollection {#140 …}
    +reports: Doctrine\ORM\PersistentCollection {#126 …}
    +badges: Doctrine\ORM\PersistentCollection {#104 …}
    +logs: Doctrine\ORM\PersistentCollection {#94 …}
    +awards: Doctrine\ORM\PersistentCollection {#83 …}
    +categories: Doctrine\ORM\PersistentCollection {#70 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729583596 {#297
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#291
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1882 …}
  +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
  +title: "FOUND file in device by hex content using wxHexEditor"
  +url: null
  +body: """
    Just having a play around, this turned out to be not as clear cut as expected.\n
    \n
    so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
    \n
    I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
    \n
    What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
    \n
    Ok, I managed to do it with dd:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">hello\n
    </span>\n
    ```\n
    \n
    but why can I not find it using wxhexeditor??\n
    \n
    EDIT:\n
    \n
    Duh, I didn’t click that offset needed to be multiplied by the block size.\n
    \n
    If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
    \n
    ![](https://files.catbox.moe/6zvhx0.png)\n
    \n
    Final conclusion:\n
    \n
    After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
    \n
    I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
    \n
    Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 11
  +favouriteCount: 37
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1701250420 {#1853
    date: 2023-11-29 10:33:40.0 +01:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1964 …}
  +votes: Doctrine\ORM\PersistentCollection {#1895 …}
  +reports: Doctrine\ORM\PersistentCollection {#2419 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1388 …}
  +notifications: Doctrine\ORM\PersistentCollection {#1375 …}
  +badges: Doctrine\ORM\PersistentCollection {#1400 …}
  +children: []
  -id: 17506
  -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
  -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1701203579
  +visibility: "visible             "
  +apId: "https://lemmy.nz/post/3824501"
  +editedAt: DateTimeImmutable @1701860652 {#74
    date: 2023-12-06 12:04:12.0 +01:00
  }
  +createdAt: DateTimeImmutable @1701117179 {#2486
    date: 2023-11-27 21:32:59.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
4 DENIED moderate
App\Entity\Entry {#1817
  +user: Proxies\__CG__\App\Entity\User {#1894 …}
  +magazine: App\Entity\Magazine {#288
    +icon: Proxies\__CG__\App\Entity\Image {#269 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1406
    +entryCommentCount: 28632
    +postCount: 6
    +postCommentCount: 214
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729583542 {#296
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#260 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#256 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#245 …}
    +entries: Doctrine\ORM\PersistentCollection {#203 …}
    +posts: Doctrine\ORM\PersistentCollection {#161 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#223 …}
    +bans: Doctrine\ORM\PersistentCollection {#140 …}
    +reports: Doctrine\ORM\PersistentCollection {#126 …}
    +badges: Doctrine\ORM\PersistentCollection {#104 …}
    +logs: Doctrine\ORM\PersistentCollection {#94 …}
    +awards: Doctrine\ORM\PersistentCollection {#83 …}
    +categories: Doctrine\ORM\PersistentCollection {#70 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729583596 {#297
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#291
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1882 …}
  +slug: "FOUND-file-in-device-by-hex-content-using-wxHexEditor"
  +title: "FOUND file in device by hex content using wxHexEditor"
  +url: null
  +body: """
    Just having a play around, this turned out to be not as clear cut as expected.\n
    \n
    so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it’s not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)\n
    \n
    I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there’s the ‘hello world’… except no.\n
    \n
    What am I missing here? Drive isn’t encrypted, nothing silly like that.\n
    \n
    Ok, I managed to do it with dd:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">hello\n
    </span>\n
    ```\n
    \n
    but why can I not find it using wxhexeditor??\n
    \n
    EDIT:\n
    \n
    Duh, I didn’t click that offset needed to be multiplied by the block size.\n
    \n
    If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:\n
    \n
    ![](https://files.catbox.moe/6zvhx0.png)\n
    \n
    Final conclusion:\n
    \n
    After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.\n
    \n
    I created a new file, it received inode 21, but the offset was smaller than inode 19.\n
    \n
    Was that a good use of 3 hours of my life? Well… I still have no idea what’s up with the Kardashians, so… I guess?
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 11
  +favouriteCount: 37
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1701250420 {#1853
    date: 2023-11-29 10:33:40.0 +01:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1964 …}
  +votes: Doctrine\ORM\PersistentCollection {#1895 …}
  +reports: Doctrine\ORM\PersistentCollection {#2419 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1388 …}
  +notifications: Doctrine\ORM\PersistentCollection {#1375 …}
  +badges: Doctrine\ORM\PersistentCollection {#1400 …}
  +children: []
  -id: 17506
  -titleTs: "'content':7 'devic':4 'file':2 'found':1 'hex':6 'use':8 'wxhexeditor':9"
  -bodyTs: "'/6zvhx0.png)':209 '/dev/sdb1':38,153 '19':55,274 '19090399232':198 '21':266 '3':281 '4096':158,164,197 '4660742':157,196 '8m':155 'across':230 'actual':243 'around':5 'ascii':119 'block':67,94,189 'bs':154 'byte':110,161 'c':163 'calcul':109,222 'cannot':220 'clear':13 'click':180 'conclud':218 'conclus':211 'content':206 'convert':117 'copi':111 'correl':251 'correspond':106 'creat':19,259 'cut':14 'dd':149,151 'devic':37,98 'didn':178 'disk':232,256 'drive':75,134 'duh':176 'easi':86 'easili':221 'edit':175 'encrypt':137 'enter':23 'except':127 'expect':16 'ext4':77 'file':21,46,205,229,244,262 'files.catbox.moe':208 'files.catbox.moe/6zvhx0.png)':207 'final':210 'find':44,51,171,228 'first':66 'get':29,239 'go':82,193 'good':278 'group':68 'guess':300 'head':162 'hello':125,165 'hex':31,114 'hour':282 'idea':291 'iflag':159 'inde':201 'inod':53,91,227,236,248,265,273 'isn':135 'joy':74 'kardashian':297 'life':285 'like':140 'line':105 'locat':245,257 'manag':144 'minut':72 'miss':132 'multipli':89,186 'need':183 'new':261 'noth':138 'offset':182,195,224,241,269 'ok':142 'open':35,96 'physical/logical':254 'play':4 'receiv':264 'requir':233 'right':60 'scroll':102 'see':203 'sequenti':255 'sever':71 'silli':139 'size':95,190 'skip':156,160 'smaller':271 'start':63 'still':288 'sudo':150 'tabl':237 'task':87 'test':215 'text':25 'thought':79 'tri':42 'turn':7 'use':26,173,225,234,279 'valu':32,115 'voila':121 'well':286 'world':126 'wxhexeditor':40,100,174,200 'xxd':27"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1701203579
  +visibility: "visible             "
  +apId: "https://lemmy.nz/post/3824501"
  +editedAt: DateTimeImmutable @1701860652 {#74
    date: 2023-12-06 12:04:12.0 +01:00
  }
  +createdAt: DateTimeImmutable @1701117179 {#2486
    date: 2023-11-27 21:32:59.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
5 DENIED edit
App\Entity\Magazine {#288
  +icon: Proxies\__CG__\App\Entity\Image {#269 …}
  +name: "linux@lemmy.ml"
  +title: "linux"
  +description: """
    From Wikipedia, the free encyclopedia\n
    \n
    Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
    \n
    Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
    \n
    ### Rules\n
    \n
    - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
    - No misinformation\n
    - No NSFW content\n
    - No hate speech, bigotry, etc\n
    \n
    ### Related Communities\n
    \n
    - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
    - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
    - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
    - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
    \n
    Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
    """
  +rules: null
  +subscriptionsCount: 1
  +entryCount: 1406
  +entryCommentCount: 28632
  +postCount: 6
  +postCommentCount: 214
  +isAdult: false
  +customCss: null
  +lastActive: DateTime @1729583542 {#296
    date: 2024-10-22 09:52:22.0 +02:00
  }
  +markedForDeletionAt: null
  +tags: null
  +moderators: Doctrine\ORM\PersistentCollection {#260 …}
  +ownershipRequests: Doctrine\ORM\PersistentCollection {#256 …}
  +moderatorRequests: Doctrine\ORM\PersistentCollection {#245 …}
  +entries: Doctrine\ORM\PersistentCollection {#203 …}
  +posts: Doctrine\ORM\PersistentCollection {#161 …}
  +subscriptions: Doctrine\ORM\PersistentCollection {#223 …}
  +bans: Doctrine\ORM\PersistentCollection {#140 …}
  +reports: Doctrine\ORM\PersistentCollection {#126 …}
  +badges: Doctrine\ORM\PersistentCollection {#104 …}
  +logs: Doctrine\ORM\PersistentCollection {#94 …}
  +awards: Doctrine\ORM\PersistentCollection {#83 …}
  +categories: Doctrine\ORM\PersistentCollection {#70 …}
  -id: 73
  +apId: "linux@lemmy.ml"
  +apProfileId: "https://lemmy.ml/c/linux"
  +apPublicUrl: "https://lemmy.ml/c/linux"
  +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
  +apInboxUrl: "https://lemmy.ml/inbox"
  +apDomain: "lemmy.ml"
  +apPreferredUsername: "linux"
  +apDiscoverable: true
  +apManuallyApprovesFollowers: null
  +privateKey: null
  +publicKey: null
  +apFetchedAt: DateTime @1729583596 {#297
    date: 2024-10-22 09:53:16.0 +02:00
  }
  +apDeletedAt: null
  +apTimeoutAt: null
  +visibility: "visible             "
  +createdAt: DateTimeImmutable @1698929468 {#291
    date: 2023-11-02 13:51:08.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS DENIED
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details