#cybersecurity

7 messages · Page 45 of 1

sick basin
#

I expect something actually written by a human.

#

Book-like (documents).

#

Otherwise it's API spec. not docs (not just functions with the comments that were written on them, although, even that is a big step up for many popular projects out there).

raven frost
#

Hmm, I've noticed that phenomenon as well and I'm glad you have a term for API-spec vs docs. I get tired of people sending me those claiming they are real docs

thorn obsidian
#

can smb help

raven frost
thorn obsidian
#

You can search for tools and how to use them

rapid kraken
#

For my security class I have to implement a covert channel, but I'm not sure really what counts as a covert channel (I know subtly different than steg, breaches containment, and uses unconventional methods that are not meant for communication to bypass the security policy and any enforcement mechanisms in place). I'm out of ideas here tho, since steganography won't work and by extension TCP/IP header editing or sending pings to a host (except that is not really covert), not sure what to do

#

Anyone here have any ideas

raven frost
#

@rapid kraken that question is a bit broad and unclear, think of a way to transmit data in a non-obvious fashion. There is so much data being sent now adays, its actually quite easy when you start to think about it

#

In fact, I would almost say that finding what’s NOT a covert channel is more challenging

raven frost
#

I probably don't fully understand your question... What is your specific concern? Vulnerable to what?

#

I think I know what you're asking, but I want you to clarify because my assumption may be incorrect. Plus, creating yourself a threat model is the first step to making the app more secure

#

Ok ok. So, this "someone" - who is this? Another application? A person standing behind you?

#

Frankly, I would not choose either of those languages if I was looking for max in-memory security. But also note that if a user has installed malicious applications, that is already a huge problem and you won;t be able to do much to protect them

#

There are probably special modules, but generally, IMO Python and Javascript are not really built for that. I wrote a program in Python that handled sensitive data and found that it copied it into memory in multiple locations... However, I rewrote it in C and I was able to consolidate the memory footprint and IMMEDIATELY destroy it when it was no longer needed. But again, this is sort of water over the dam, no matter the language one can get access to memory on his/her own machine with privileges.

#

Right now, if I have a keylogger installed, it can get what I am typing to you. Discord cant prevent that.

#

@thorn obsidian The thing is, your app will have to have the data in memory at some point to work with it

#

any malicious program that has access to the memory would be able to steal the data at that point

#

I used to reverse engineer software, much of which had encrypted data

#

all I did was put a breakpoint or hook near the encoding algorithm and wait

#

then let the program decode the data for me

#

lol

#

So, trying to protect data in memory from other applications that a user has installed is not very productive generally speaking. The OS sometimes has protections that help with this, such as permissions/users/sandbox etc...

#

If you want to know how you could help reduce the length of time that sensitive data is in memory check out something like this: https://stackoverflow.com/questions/53792077/how-does-memset-provide-higher-security-than-bzero-or-explicit-bzero#53792516

#

but again, thats not Python either.

#

@thorn obsidian exactly

#

You'll have more control over memory in C++ and even Rust, but ultimately the same issue exists really

#

If you really want to know what kind of stuff can be done to hide/protect data in memory, check out this

#

(I am NOT suggesting you do this; it is extremely complicated, not worth it, and adds a lot of unecessary complexity and performance costs)

#

See "Features"

#

that thing is designed to protect/secure/obfuscate apps while in memory

rapid kraken
#

so i broke out the C and wrote a snake program for the Ti 84 CE that transmits a secret message by changing the background color

#

im wondering if the containment principle doesn't have to be technically enforced

#
In computer security, a covert channel is a type of attack that creates a capability to transfer information objects between processes that are not supposed to be allowed to communicate by the computer security policy.
#

hmmmm

#

yeah im not sure if my program would work

raven frost
#

It sounds like your issue is that you need to get clarification on what’s being asked of you more than anything else @rapid kraken

#

There is generally some wiggle room when it comes to such definitions in security much like other spaces. So because I feel something is a covert channel that may not be what your instructor is asking for etc

subtle trout
#

Kali linux??

glad cobalt
#

Can i post here link for another discord group?

vagrant mist
past starBOT
#

6. Do not post unapproved advertising.

glad cobalt
#

ok

wintry ocean
#

when I use a MapView on my mobile app, I need to declare MapSource like this:

source = MapSource(
                url = "https://api.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}.jpg?access_token=my_acess_token",
                cache_key="my-custom-map",
                tile_size=256,
                min_zoom=8,
                max_zoom=17
                )

the problem is: if I put my access_token on url, some user could take my access_token and use for other purposes, besides attacking it
so, my question is, how should I proceed, how can I give the users of my app the rights to use my personal access_token from MapBox API, without exposing the access_token on the app APK?

raven frost
#

@wintry ocean oh boy, the classic question

#

Everyone asks that. Short answer is you really can't. I mean, you could do something like make another level of indirection such as using something like HashiCorp Vault or AWS Secrets Manager. This would allow more fine-grained control over the key. But IIRC, those keys probably already are designed for this.

#

So, say for examle it would be a huge PITA for you to rotate that API key... Using a secret manager API like I just explained above would solve that problem

#

instead of the actual MapBox API access token, you would use a more ephemeral or granular one, so that if something bad occurred, you would not need to rotate the main MapBox accesss token for example

#

But at some level, you're going to have to expose some client key

#

you could also try to obfuscate the keybut I highly DO NOT recommend that. It's usually a big waste of time - instead use your brain and aforementioned tools to situation your application's security posture in such a way that worse case scenario, your token starts getting abused, you can quickly limit the damage.

#

Most obfuscation is rather trivially to undo - I used to do this all the time. In fact, at a previous employer the engineering team specifically asked me this about the MapBox access token.

#

IIRC you may be able to throttle, monitor, or control its usage in the MapBox control panels

dapper junco
#

when encrypting with aes, you need a key and an iv
is it okay to randomly generate the iv out of a range of characters, such as "abcdefghijklmnop" (as the iv)

shrewd thorn
#

Hi People, im new at Python, i would like to know if, writting a script that runs at the background is easy?

graceful quarry
wicked nest
#

can someone help me with a CTF?

wintry ocean
#

@raven frost thanks for the extensive explanation!

#

I think I may not worry too much about this token in the end

shrewd thorn
wicked nest
distant mason
#

Hello everyone could you help me with a Kryptography assignement?.. I should add a transaction to a blockchain ..that means I should calculate per brute force a hashvalue smaller of factor 2 of the oldest transaction and I have time till 20 o clock :.(

light dew
#

What's up guys

I'm into cybersecurity right. and i want to learn to write python code/script to automate tasks and do cyber type tasks

most of the stuff i find have to do with data science. is the coding process the same? or should i find python coding videos specific to cyber? help please

whole steeple
#

how do i hack with python

#

or get started with knowlege

light dew
#

lol bro we're in the same boat it looks like

raven frost
#

@whole steeple same answer

#

20 bucks on Amazon

#

The longer answer though is that you also just need to learn cybersecurity concepts in general. At the end of the day, when you write a Python (or any) program, you're just instructing the computer to do something for you. If you dont know what needs to be done, that will never happen properly.

whole steeple
#

okay thank u

raven frost
#

But that book does a decent job at combining learning both

whole steeple
#

i am intermediate in python and only know how to exploit games atm

raven frost
#

@whole steeple if you're interested in Web hacking type of stuff, also check out the tool "Burp Suite". You will do a lot of stuff manually with it, but you should be able to translate some steps into python script automation if you simply even know the requests library for example

#

You want to generally learn things manually first, then automate where it makes sense to do so.

whole steeple
#

okay ty so much

#

also there is a 2nd edition to the black hat python, should i get read that instead?

#

@raven frost

raven frost
#

YES. It was published in 2021 so its going to have much more updated content, which might be relevant to python

whole steeple
#

ok

raven frost
#

Burp Suite has a free community edition that you can use for your purposes. The paid one just has a bunch of extra automation plugins and things that you dont really need

whole steeple
#

got it

light dew
dreamy bear
#

Hello guys
can u help me with few projects ideas?
For my git
I m intermediate level in programming

void dune
#

@whole steeple @light dew @dreamy bear
Here is an idea that would work for 3 of you.
"A Rest API in python that offers to scan files for Malware".
Watch out how you will be handling those files once you open the request 😉

paper fox
#

Hello. What's the difference between the blue box "hash algorithm turns to digest" , and the lock "asymmetric crypto algorithm" ? thank you

sinful cliff
# paper fox Hello. What's the difference between the blue box "hash algorithm turns to diges...

Encryption can be reversed (decrypted) with the right key, while hash algorithms can not be reversed (only reproduced).

In symmetric encryption the same key is used for encryption and decryption, called a shared key, that both parties (sender and receiver) need to know in advance and thus need to be securely shared between the parties beforehand. If anyone else gets hold of the key and the encrypted messages (also called cyphertext) they will also be able to decrypt the messages.

With asymmetric encryption one create a key pair, a [secret] private key that should [generally] never be shared with anyone, and a public key that can be shared with everyone.
When encrypting a message with one of the keys it can only be decrypted with the other corresponding key, this works both ways, but the same key used for encrypting the message can not be used to decrypt the message.

Both types of encryption will produce a variable length output that depends on the length of the input.
For encryption it is from planetext to cypthertext, and decryption is from cyphertext to planetext.

Hash algorithms (sometimes called a hash function) on the other hand is a one-way operation that produces a fixed length output (the length depends on the hash algorithm used), called a digest (you can think of it as a special type of checksum), for any variable length input text.
The same input always produces the same digest as output, but given only the digest one can't know what the original input was and can't be worked out backwards from the digest.
For a secure hash algorithm, any change (big or small) to the input should produce a [often radically] different digest and it should be unfeasible to willingly find two different inputs that produces the same digest (called a hash collision).

sinful cliff
# paper fox Hello. What's the difference between the blue box "hash algorithm turns to diges...

When signing messages using asymmetric encryption one do not encrypt the [variable length] message it self using asymmetric encryption, but instead produce a digest of the message using a hash function and then encrypts the [fixed length] digest using the senders private key.

To verify the signature and make sure that the message and its corresponding signature has not been corrupted or altered in any way, the recipient need to have (or get hold of) the senders public key (and be sure that this this is in fact the public key of the sender and not an imposter).
Then the recipient takes the signature they received and decrypts it using the senders public key to get the original digest that the sender produced for there original message.
The recipient also need to produce a digest of the message they received (excluding the signature it self) using the same hash function as the sender.
As a last step the recipient compares the digest they just produced from the received message with the digest they decrypted from the signature, if they match exactly (and trust both the asymmetric algorithm and the hash function) they can be confident that the message has not been corrupted or altered in any way, and the holder of the private key is also the only one that could have encrypted the digest the recipient got when they decrypted the signature using the corresponding public key.

Anyone that has the public key, the message and the signature can verify the signed message, it's nothing secret about it unless the message is also encrypted.

cunning pagoda
#

Can someone give me some cyber security technical risks ? Examples or any information please

cunning pagoda
#

There is humain risks and technical risks in cyber security right? I need information sites books ..examples about technical ones in french les risques technique en sécurité informatique

raven frost
#

ah sorry I don't know French resources unfortunately 😦 Hopefully someone else does.

cunning pagoda
#

No even in English maybe i didn't know how to explain it well 😅

thorn obsidian
#

are there any kali linux books about all the tools and how to use them?

raven frost
#

@cunning pagoda do you mean risks with applications, or general cybersecurity?

#

like, does this question pertain to for example applications written in Python? Or are you talking about general cyber security risks such as malware, phishing, etc...?

#

@cunning pagoda anyway, going to assume applications, as that is what is relevant to a security chat in a Python server

#

There are 3 levels, depending on how high of security your application requires based on its threat model etc...

#

thats what L1, L2, L3 refer to

dapper junco
dapper junco
#

never mind i wrotr an implementation of that myself and it works thanks!

near abyss
#

urandom gets it's randomness from what is called an operating system's entropy which is considered much more cryptographically secure that any other method

dapper junco
near abyss
#

the purpose of the iv is to add further uniqueness to the encryption

#

the problem it tries to solve is with the cbc mode, where tow files that begin with identical content will result in identical first blocks in the encrypted data

#

if someone notices that, by knowing where the plaintext begins (for the first block / beginnign of the data at least) and the corresponding plaintext, they could determine the key and undo the encryption

#

so what's necessary about the iv is that it needs to be unique each time you use one for some data, randomness is secondary but still necessary, and immature randomness like cryptographically insecure RNGs could end up being reversed and defying the purpose of the iv

raven frost
#

yeah for CBC it needs to be random from CSPRNG @dapper junco . If you're using CTR mode, it doesn't - in that case the IV must never be reused/must be unique. I dug this question up which provides more detail: https://crypto.stackexchange.com/questions/58188/iv-vector-is-not-random-is-it-critical

dapper junco
#

i'm using std::mt19937 right now, but apparently its kot cryptographically secure

#

any suggestions on what i can use?

mortal topaz
#

gm. i am trying to make a simple server client socket interface . and i want to make the client.py an .exe to run on other computers. but i cant make it , programm pushes this error message:

#

Exception: Unable to access file 'C:\Windows\system32\ntdll.dll': [Errno 13] Permission denied: 'C:\Windows\system32\ntdll.dll'

brittle bronze
#

Programming and ethical hacking.

Am already into ethical hacking though.
Which is best and easy for security and penetration testing?

cobalt tusk
#

I don't know if this is the right channel to ask this question but does live-streamed video from my laptop contain EXIF-data and if yes, is there a way to disable sending data like location or the EXIF-Data alltogether ?

cobalt tusk
sinful cliff
cobalt tusk
# sinful cliff you probably need to provide more information, like format and codecs that you i...

Uh, I'm not sure what that exactly means but I do understand that my question might have been a little to general. If I decide to turn on my laptop camera on, idk, discord, does EXIF data (like in pictures) get sent to discord or is there no EXIF data in live-video and assuming it is being sent, would there be a way to change some settings to not sent that data or at least critical data like exact GPS location and stuff.

near abyss
#

the metadat being sent for live streams is different than that for images, stream data isnt passed through with individual frames but the stream headers or smthng like that, but it sure isn't embedded into each individual frame since live streams are too latecy sensitive to send metadat with each frame lul

cobalt tusk
#

But is stuff like GPS coordinates being sent ?

sinful cliff
raven frost
#

@cobalt tusk If youre worried about what the browser sends to the server go download burp suite and watch it.

#

If it’s an app you could also do that but it’ll be more challenging because you’ll likely have to unpin the apps certificate 🙂

cobalt tusk
raven frost
#

@cobalt tusk it’s a proxy that will sit in between apps and decrypt everything they send to their server so you can read and modify it all, omit some stuff etc

hollow oasis
#

Does anyone have any recommended patterns/methods to storing and using record level permissions? For example, I have an app for approval requests, the approval request will be able to be accessed by the requester, the approvers, and anyone who has Admin access to view the specific request type. The admin piece is easy, I know how to handle that using scopes/roles. However, I am not too sure what the best way to setup record level permissions for the requester/approvers would be. Do I have a separate table for those permissions, do I store them with the record itself in let's say like an acl json column etc.

hollow oasis
#

might be more of db design

#

question

sinful cliff
sinful cliff
# hollow oasis might be more of db design

yeah, i think so too, but it probably involves foreign keys in the approval requests table to the primary key in the user table for requesters and another one to the primary key of the approvers group applicable for that approval request

hollow oasis
#

Hm, thats along the lines of what I was thinking, a foreign key to a look up group ( the lookup group would be a custom group for the approval itself )

thorn obsidian
#
os.system('copy %myfile% %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\')

#

dont work

sinful cliff
south coral
#

Anyone here who has used Balkasoft Evidence Center X for RAM image Analysis
I want to know why TOR links are present in my RAM image despite me not ever having to install tor or visit any onion sites
Someone said that these are just signatures to compare against, if so then why are they in plain text, are'nt signature lists normally hashed

strong sonnet
sinful cliff
# strong sonnet I think they need it for shortcuts that basically on windows uses like %userprof...

those "shortcuts" are just windows way of expanding environment variables
to read them form python and use them in your code you can do something like:

import os
import shutil

shutil.copy2(os.getenv('myfile'), os.path.expandvars(r'%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup'))

that also demonstrate accessing environment variables in two different ways, first a generic one and then another for path expansion that is very akin to how you do it in windows cmd

#

note that the code is not an example of good formatting or programming practices 😉

sinful cliff
# thorn obsidian ``` os.system('copy %myfile% %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Sta...

see my reply to @strong sonnet above

however i think the real culprit in your code is that you are using \ in the string as path delimiters (as is usual in windows) without using python raw strings
to use those; prefix the string with an r (as i did in my code above), but even with them you can't end the string with just one (or any uneven number of) \ as python will read that as if you want to escapes the ' character in the end of the string, you'll have to go with two of them like this \\ or leave them out entirely at the end (like i did in the code above)

the docs https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals has this to say about it:

Both string and bytes literals may optionally be prefixed with a letter 'r' or 'R'; such strings are called raw strings and treat backslashes as literal characters.
but:
Even in a raw literal, quotes can be escaped with a backslash, but the backslash remains in the result; for example, r"\"" is a valid string literal consisting of two characters: a backslash and a double quote; r"\" is not a valid string literal (even a raw string cannot end in an odd number of backslashes). Specifically, a raw literal cannot end in a single backslash (since the backslash would escape the following quote character). Note also that a single backslash followed by a newline is interpreted as those two characters as part of the literal, not as a line continuation.
and this applies to ' just as it does to " as python does not differentiate between them in its handling

#

and now when i come to think about it, this channel was probably not the right place for this 🤔

thorn obsidian
#

i got this error when running file

sinful cliff
# thorn obsidian i got this error when running file

keyg.exe... have you been looking for key generators online?
you don't need to answer but it sure looks like it, just know that it's like begging for trouble
anything you execute on your computer that doesn't come directly from a reputable source can come with unpleasant surprises

thorn obsidian
#

looking for a good alternative to auth.gg

limpid meadow
#

hey

dark jackal
#

lol

#

stlll people using this ?

sinful cliff
# dark jackal its windows 7?

wow, good catch if that is the case!
then @thorn obsidian really should update to something newer... err, rather do a full reinstall to clean out any malware that might be lurking on a unsupported and thous unpatched system
as a full time linux desktop user from long before the windows 7 days i didn't identify the windows version from only that picture 😆

thorn obsidian
#

it was py

sinful cliff
# thorn obsidian it was py

what a relief that it wasn't some serial number/key generator downloaded from the internet, they are notorious for containing malware like trojans 😅

thorn obsidian
#

does cors prevent xss if none of the servers of the allowed domains are compromised?

slate fulcrum
#

u mean csrf?

cloud bolt
#

Are there any ways to get into white hat hacking? Like some boot camp or college course

slate fulcrum
#

hackthebox and tryhackme have nice challenges

dire osprey
lilac jungle
#

^Curious of this question as well

slate fulcrum
#

not too much, they even have some videos too

fading plaza
#

can confirm that thm is beginner friendly

pearl stone
#

Hi someone already worked cryptography concepts using python?

thorn obsidian
pearl stone
#

I want to make a merkel tree

thorn obsidian
humble perch
#

Hello

#

Everyone

sly tangle
#

Hey guys I need a suggestion. I'm working on security side which python course is best for me. I have clear python basics.

thorn obsidian
#

For advanced I suggest the book : Black hat python

sly tangle
#

I'm not sure how good im

thorn obsidian
#

For intermediate: violet python

sly tangle
#

I have this book but I haven't read it yet.

thorn obsidian
thorn obsidian
sly tangle
#

Back hat python

thorn obsidian
#

Better not to start

sly tangle
#

I'm learning for to make our own exploit.

thorn obsidian
#

it requires a advance level of python

thorn obsidian
#

but u have to achieve the advance level

sly tangle
#

I'm practicing on other people code.

thorn obsidian
#

I suggest u to learn deeply socket, scapy, hashlib,fernet, etc

#

Then read Violet python then black hat python

sly tangle
#

Thanks for suggesting. I have work on scapy tool.

#

I have to read voilent python. I have check it on Google. I think it's best for me. Thanks broo 😘

quartz quartz
#

Can anyone assist me with evilginx

#

Am having issues enabling a phishlet, it keeps on telling me unauthorized response to domain

terse lance
#

rreeee

pulsar thistle
#

Re

graceful cliff
#

guys ı cant create payload at msfconsole

#

getting error

#

can someone help ?

grand edge
#

does anyone have any resources to learn how to implement user authentication and end-to-end encryption and such?

sinful cliff
grand edge
#

yeah im looking for resources to learn, not a real product as such

thorn obsidian
#

yo

grand edge
thorn obsidian
#

all good

thorn obsidian
grand edge
#

if you have a question related to security, feel free to drop it here; for casual chat there's our off-topic channels #ot0-fear-of-python

thorn obsidian
#

what powers does an ip address have?

brave drum
thorn obsidian
brave drum
#

It can also be used to take your router offline by DoS attacks

#

not really much other than that, and it's common for ISPs to hand out dynamic IPs

thorn obsidian
#

or wifi

brave drum
#

Your router has an IP, not the individual devices

#

Because of NAT

#

Your mobile and your computer may have the same IP given they're on the same network

thorn obsidian
#

ye i mean

#

yes'

brave drum
#

Or do you mean cellular data?

thorn obsidian
#

ye

#

lol

#

ik wifi has 1 ip

brave drum
#

I'm not familiar with that much since I mostly study LANs but if cellular data works similar, knowing your IP is not that important considering there may be 100s of others with the same IP

thorn obsidian
#

i mean that if its conected 2-3 times

#

same ip?

brave drum
#

what do you mean?

thorn obsidian
brave drum
#

depends on how the mobile is hacked

#

But in a sense it can be turned into part of a botnet or a command-and-control center

#

but you know "hacked" can also include getting your facebook account password changed so like I mentioned, very dependant on the type of "hack"

thorn obsidian
#

all permissions

brave drum
#

A rootkit?

thorn obsidian
brave drum
#

i.e you can become the root account

thorn obsidian
#

ya something like that

brave drum
#

Then that's a problem

#

since that person has full access to the machine

thorn obsidian
#

..

brave drum
#

they can do all sorts of things since they're inside the network

thorn obsidian
#

ohhh

thorn obsidian
thorn obsidian
#

not open?

brave drum
#

Oh

#

Perhaps

#

Though usually rare

thorn obsidian
#

also is there any chance that a txt file can be dangerous?

#

@brave drum

sinful cliff
# brave drum I'm not familiar with that much since I mostly study LANs but if cellular data w...

and @thorn obsidian, when it comes to WWAN (cellular internet access in this context):
operators sometime give devices a dynamic public ipv4 address, just like a your router at home gets from you isp
others use dynamic private ipv4 addresses and does source NAT on a large scale called CGNAT (Carrier-Grade NAT)
and something that is becoming more common due to the shortage of ipv4 addresses at the same time as there is a proliferation of connected devices, is that the device gets a public ipv6 address and for access to ipv4 resources online they use the same kind of CGNAT setup as above but with ipv6 on the device side and ipv4 on the outside

brave drum
#

interesting

umbral robin
#

does anyone know how i can block a specific url?
its an endpoint for a desktop app, and it uses localhost as its server

#

basically, what i am trying to negate is the app stealing focus, but i dont want to disable the stealing focus for all apps, nor for this app ALL the time, just for a very brief time, periodically

umbral robin
sinful cliff
brave drum
#

But of course, usually just bugs that will crash your notepad or whatever you're looking at. Worst case is you might get BSOD

raven frost
#

In software, ANY time there is “untrusted data” coming from an external source, it could be dangerous. Some applications designed to handle this will be less susceptible to attacks than others

#

@thorn obsidian

sinful cliff
#

but yeah, much lower likelihood especially if it's a well known, trusted and not too complex text editor

raven frost
#

Yeah every vuln is it’s own story. There are simple crashes and that’s it, but there are also full blown exploit chains possible. There is no way to definitively know without looking at the specific code bug, and even more than looking at it, trying to exploit it. Even then some bugs may be exploitable in certain environments and not others. Most main text editors have covered most of their bases by now though.

#

If you want to know what’s possible, I suggest looking at whatever bug and determining what the attacker can and cannot control, and how that could be leveraged. For example if an attacker can write 4 bytes to arbitrary memory, but the content of those bytes is not controllable, that may be different from if the attacker can control the content of those bytes. Likewise, can the attacker trigger a loop that writes these bytes in order to write more than 4 bytes? Etc…

#

Those and similar are the details that differentiate potential code execution from a simple crash.

thin peak
sinful cliff
sinful cliff
thorn obsidian
#

And talking about WAN. You can invite your target to your own LAN.

#

Rather than trying to break in on his LAN

thorn obsidian
#

Thats why we dont connect to unknown wifi

arctic magnet
#
rapid mountain
#

Lipton... I drink Twinnings Earl Grey

cinder fable
#
#

how to skip time

#

in github they dont work

raven frost
# arctic magnet https://www.fark.com/comments/12294582/Bug-in-encryption-code-can-let-bad-guys-f...

The psychic paper in the TV show "Doctor Who" displays whatever the Doctor needs it to show at any given time. The Java vulnerability Neil Madden exposed is a digital version of this. Dr Mike Pound explains.

Neil Madden's blog: https://neilmadden.blog/2022/04/19/psychic-signatures-in-java

https://www.facebook.com/computerphile
https://twitte...

▶ Play video
slate fulcrum
#

what do people put in their portfolios in cybersecurity?

raven frost
raven frost
#

I would love to help answer security questions in here, but I highly urge folks who ask to not ask questions about "cybersecurity." It is way too broad of a topic for nearly any useful answer. Or if you do, please be more specific. It's almost like asking questions about "people who know the English language." It is such a broad langauge that it's very difficult to answer generic questions about that.

slate fulcrum
thorn obsidian
slate fulcrum
thorn obsidian
raven frost
# slate fulcrum programmers make small programs for their portfolios, but what do cybersecurity ...

research work, CVEs discovered, blogs, bug bounties, reports, talks. I have literally gotten job offers from those things. I did two talks where people in the audience came up to me after, gave me their card and said they could use my expertise. I also showed my research work and blogs to people, and they said same. Generally, if you are teaching people quality technical stuff, you don't have to try real hard to prove you know what you're talking about. It's not that hard to do either, you just pick an area and focus on it for a few weeks to a month or two, and you can become a SME relatively quickly in niche areas.

thorn obsidian
#

Note that if you are good enough when doing CTFs you will also get people's attention - not as much as other things, but still boosts up.

thorn obsidian
# slate fulcrum most ctfs have answers available online tho

That's why you make live CTFs, not CTFs after they are finished. Go on CTFtime and register for one, when you're done doing it make a write-up explaining how you solved your challenges. Depending on which challenges you've solved and how detailed/good you can sum them and your solution up - people know you know what you're talking about.

#

Solving challenges of past CTFs helps you for future attendances and how to solve challenges. If you make a wirte-up in 2022 about a CTF of 2019 it's "suspicious" in some ways - you wouldn't really make a write-up for such an old CTF that has lots of public solves and explanations.

thorn obsidian
raven frost
jovial yoke
#

how do i encript?

#

how do i encript?

sinful cliff
jovial yoke
sinful cliff
jovial yoke
sinful cliff
sinful cliff
sinful cliff
sinful cliff
jovial yoke
sinful cliff
sinful cliff
jovial yoke
sinful cliff
sinful cliff
jovial yoke
sinful cliff
#

i am doing other things on the computer and trying to help out in other channels as well
i got a gimps of it during about 3-5 seconds until you removed it

jovial yoke
sinful cliff
jovial yoke
sinful cliff
#

@jovial yoke you can delete it again now if you like to (refraining from doing a reply so that your code isn't stuck in the reply part)
your not using an orm from the looks of that ✅

sinful cliff
jovial yoke
sinful cliff
#

@jovial yoke but i see now, either you can opt to encrypt the whole table in the database, for that you need to configure your mariadb for that
then it will be encrypted "at rest" (on the disk/storage media) but you can continue using the database just as you do now
or you can encrypt the strings before you put them in to the database, but then you can't search/match, do joins and such on the data in the database as it's not plaintext strings any more

jovial yoke
sinful cliff
# jovial yoke where do i find that option

here is some information on encryption of data "at rest":
https://mariadb.com/resources/blog/table-and-tablespace-encryption-on-mariadb-10-1/
https://mariadb.com/kb/en/data-at-rest-encryption-overview/
just be ware of the limitations of this encryption, for example; it will not protect your data if someone can login to the database with valid credentials

and if you have "at rest" encryption you probably want "in transit" encryption as well (if you don't have it already) so that someone can't listen in to the network traffic and see the data:
https://mariadb.com/docs/security/encryption/in-transit/enable-tls-server/
https://mariadb.com/kb/en/secure-connections-overview/

if those do not meat your security needs you do need to encrypt every string before you put it in to the database in the code of your program, but that also means you can't use sql queries as you normally do as the data is encrypted and the database don't have any way to see what the data is before you have fetched it and then decrypted it in your own code

jovial yoke
sinful cliff
jovial yoke
sinful cliff
# jovial yoke an enctriped str?, **what do i want to be encrypted** the progress of you and th...

yes, but what do you want it too look like in the database tables, still numbers or encrypted strings that you have to decrypt in your application code to get to the numbers?
if you want to be able to do operations on the data with sql you will need to have the real data readable there
in that case you don't have many other options then going with "in transit" and "at rest" encryption like the ones i linked to up above

jovial yoke
sinful cliff
# jovial yoke an enctriped str in the memory, ~~decrypted in workbence~~, an enctriped str at ...

is would go with "in transit" encryption (tls/ssl) and "at rest" encryption directly provided by features in the database
how to configure that is outlined in the links i posted above

if you are going to go with application level encryption it will probably look good but not stand up to more advanced attacks to break the encryption
encryption is hard to implement right/securely your self (or that you find on the internet), even subject experts gets it wrong, which leaves the data vulnerable

you probably need to work out your thread model (what kind of advertiser and type of attacks) that you really need to defend against
better protections will cost you a lot in terms of time and complexity, and probably money too

jovial yoke
sinful cliff
sinful cliff
sinful cliff
lunar escarp
#

Is there a way to use python to inject VBA code into a maceo in a .xlsb or .xlsm?

silent plinth
#

can anyone help with exploiting eval on a web application?

sinful cliff
thorn obsidian
lunar escarp
sinful cliff
thorn obsidian
#

That doesn't really matter

#

It's still not considered as on topic in my opinion

#

They clearly asked

How to exploit

#

And not

Why not use this, how to fix, why to avoid it, etc.

sinful cliff
sinful cliff
lunar escarp
#

Quite 🙂 I need to create a programmatic way to build phishing tests for my company. If you're not comfortable in sharing in the public channel, can you please contact me in private? Thanks a lot

sinful cliff
lunar escarp
#

Thanks for pointing out that you could help me but you won't

sinful cliff
lunar escarp
#

Is there a way to edit/populate an existing .xlsm file w/o modifying the vba macros?

raven frost
#

@lunar escarp @silent plinth You should both look at pentesting channels and/or websites/training. As @thorn obsidian said, exploitation especially in this context is off-topic here and for good reason. I've been in your position before and know there's a decent likelihood what your asking is legit. But, part of working in security is knowing where you can ask stuff, and generally popping into a security channel where nobody knows you is not the best start. If it is nefarious, then you've just provided the government with evidence against you because the content of this channel is stored on a server subject to federal subpoena, and chat room/forum activity is how like 90% of "hackers" get caught. MalwareTech, Silk Road guy, etc... Lots of documentaries on this. Hopefully we won't see you in another 🙂

lunar escarp
#

Fair enough.. your channel your rules. My thoughts: being protective about information won't help you growing a healthy community. True it's a potentially hot topic and that I appeared here out of the blue, but I need to do it and I will figure out how. If not here I'll find it in other venues. Also, if I were a 15yo kid fooling around, no way I'd care about your ethics or you would scare me away with 'hackers get caught' talk. Believe me.. I've got a 15yo kid and I've been one myself 🤣
But thanks for the suggestions on pentesting, I'll take a look!

raven frost
silent plinth
empty prairie
#

Hi everyone, I need help deciding what should I do for my CS undergrad capstone project. I mainly code in python and I am a cyber security concentration so I thought it would be interesting to post here and maybe get some ideas. Only requirement is it has to be interactive think gui/webapp/website.

thorn obsidian
#

Well, what are you even supposed to do in your "undergrad capstone project"? A vulnerable app? A non vulnerable app? Not everyone is in the same school as you and knows what such a thing is.

sturdy ginkgo
#

sup

#

do y'all have a list of the top cybersec discord servers?

#

nvm just yeeted it into google like 20 minutes ago it was the perfect search query

#

peace

misty pumice
#

Hello, looking at the channel title this looks like to right place to ask this, but if it isn't forgive me. When using requests.get or requests.post, what information from my system is being sent to the other side when I make that request? The site is an HTTP, (Yes, not HTTPS) Chinese Government site, so yeah this already sounds like an all around bad idea, but you don't know if you don't ask.

empty prairie
dapper verge
#
In [83]: h.pbkdf2_hmac('sha1', b"eBkXQTfuBqp'cTcar&g*", b'A009C1A485912C6AE630D3E744240B04', 1000)                                      Out[83]: b'\x14(\xfbJ7\ny\xb1\x19jA\xcc\xda\xef1\xa10\xce\xa4\x9e'                                                                                                                                                                                                              In [84]: h.pbkdf2_hmac('sha1', b"plnlrtfpijpuhqylxbgqiiyipieyxvfsavzgxbbcfusqkozwpngsyejqlmjsytrmd", b'different_salt', 2222)           Out[84]: b'R?\xbbV\xc2\x92\xdfS}\xea\xe7\xf5@\x8et\x96^g\x95\xca'   

Wiki says that PBKDF2 has collision when using plnlrtfpijpuhqylxbgqiiyipieyxvfsavzgxbbcfusqkozwpngsyejqlmjsytrmd and eBkXQTfuBqp'cTcar&g* and the output will be the same no matter what salt and iterations parameters are given, yet I can't get the collision here, am I doing something wrong?

thorn obsidian
#

That is not what it is saying

#

The collision occurs under this circumstance:

If a supplied password is longer than the block size of the underlying HMAC hash function, the password is first pre-hashed into a digest, and that digest is instead used as the password.

empty prairie
thorn obsidian
dapper verge
# thorn obsidian That is not what it is saying

Yeah and it also says :


"plnlrtfpijpuhqylxbgqiiyipieyxvfsavzgxbbcfusqkozwpngsyejqlmjsytrmd"
"eBkXQTfuBqp'cTcar&g*"```
And I can't understand it at all, I guess I would need some example in python on how to create such collision.
thorn obsidian
#

So, because “plnlrtfpijpuhqylxbgqiiyipieyxvfsavzgxbbcfusqkozwpngsyejqlmjsytrmd” is larger than 20 bytes, it is hashed, and the output is “eBkXQTfuBqp'cTcar&g*”

Only then that output is used in pbkdf2 iteration.

dapper verge
#

Okay, I got it now. Thank you!

thorn obsidian
dapper verge
#
In [67]: h.sha1(b'simulation101'*1337).hexdigest()                                                                                     Out[67]: 'a60cf54fb58212d589bd29a3f33675db90ba544a'                                                                                                                                                                                                                           In [68]: h.pbkdf2_hmac('sha1', bytearray.fromhex(_), b'different_salt', 2222).hex()                                                    Out[68]: '3fb100f77fca7e7f32eef139a7e23a593225a2a4'                                                                                                                                                                                                                           In [69]: h.pbkdf2_hmac('sha1', b'simulation101'*1337, b'different_salt', 2222).hex()                                                   Out[69]: '3fb100f77fca7e7f32eef139a7e23a593225a2a4'  
thorn obsidian
# dapper verge ```py In [67]: h.sha1(b'simulation101'*1337).hexdigest() ...

pw1 = bytes("plnlrtfpijpuhqylxbgqiiyipieyxvfsavzgxbbcfusqkozwpngsyejqlmjsytrmd", "ascii")
pw2 = bytes("eBkXQTfuBqp'cTcar&g*", "ascii")

result1 = pbkdf2_hmac_sha1(salt, pw1)
result2 = pbkdf2_hmac_sha1(salt, pw2)```

You don't need to calculate the hash like you did in [67]. PBKDF2 will do that. The collision here is that both passwords - "plnlrtfpi...lmjsytrmd" and "eBkXQTfuBqp'cTcar&g*" - yields the same derived key.
patent hull
#

What are the best python libraries for maintaining privacy when making http/api requests?

woven gazelle
#

What do you mean by 'maintaining privacy'

drifting imp
thorn obsidian
#

I think u meant how to protect api requests from brute forces ?

chilly hare
#

Hey everyone , I am trying to learn elliptic curve cryptography implementation in python , can anyone help me ?
Its my college project

thorn obsidian
chilly hare
fleet creek
#

Does anyone know how to disable Javascript and WebRTC in PyQtWebEngine? I want to have a privacy centered Web Browser that I made so that's why I want to know this.

thorn obsidian
sinful cliff
chilly hare
#

In college I have to submit it

#

:)

sinful cliff
chilly hare
sinful cliff
chilly hare
#

I know the basics of what is ecc and how it works , the ellipitic curve and just a basic ecc code is expected to be implemented

#

Not more than that

sinful cliff
chilly hare
#

That is the thing , now , my submission is day after tomorrow, and the teachers are not available in my college , I don't think so we are supposed to literally write the code for the elliptic curve

#

But it shouldn't be too much readymade

#

I hope you understand

#

What I mean

#

:)

#

Like not a direct ecc function

#

Some other functions which would be using say python inbuilt functions

sinful cliff
chilly hare
#

Exactly

#

College sucks

#

They expect us to write codes without using stack overflow, rememberijg the entire syntax on basic notepad

#

Legit they told us thi

#

This*

#

If you can just help me with the submission

#

It will be a great help

sinful cliff
chilly hare
#

I know that man , but who will tell the teachers

#

Can you help me with ecc ?

#

College sucks

#

Are you there ?

sinful cliff
#

sorry, it's too big of a project for me to even begin to take on and help you with today as I have very little time today specifically (even now i'm writing on my phone)

#

sorry about that 😞

chilly hare
#

Okay , a basic code of just to explain ecc would be fine and if you get free and can help me please dm me 🙂

sinful cliff
chilly hare
#

Okay cool 🙂

sinful cliff
# chilly hare Okay cool 🙂

by the way, if this is due to be submitted the day after tomorrow... how long ago did you guys get this assignment?
because this sounds like a unreasonable big task to take on in just a few days

chilly hare
#

A week ago , there are 5 subjects in this sem's submission

#

Due to pandemic everyone didn't bother to anything

#

So we figured out everything

#

Just this thing remains

#

Ecc , sdes and saes

near abyss
proud scroll
past starBOT
#

4. Use English to the best of your ability. Be polite if someone speaks English imperfectly.

scarlet hull
#

Any recommendations for tools to perform dependency checks? Using poetry for package management right now (so no problem to generate a requirements.txt if needed)

thorn obsidian
#

Hello everyone!
I have this recent post on LinkedIn where they talk about running python in the browser with pyscript.
People have been making comments like how this is a bad idea and would lead to security issues etc.
Can someone please explain to me why they say such things and what's at stake with this possibility?

rugged bobcat
#

hey guys, do you think htb is a good place to start learning cybersecurity?

dark socket
#

@scarlet hull what kind of checks are you thinking? (doesn't poetry do dependency resolution already?)

scarlet hull
#

@dark socket checking for known vulnerabilities

dark socket
#

oh, right, security channel. no idea, sorry

thorn obsidian
# rugged bobcat hey guys, do you think htb is a good place to start learning cybersecurity?

I don't think HTB teaches you the fundamentals such as networking, etc. Or at least not for free. Personally never really looked a lot into HTB.
I would start by learning the fundamentals of computer science and cyber security before getting into these 'challenges' as you will probably get frustrated.
Cyber security is not just about solving these challenges or the stereotypical penetration tester, there is a lot more in the background.

Cyber security takes time to learn, so don't expect to solve challenges of HTB after a few days aside from the very basic and easy ones.

TL;DR I don't think HTB provides the resources needed to actually learn cyber security unlike reading books which teaches a lot or watching YouTube videos, or at least not for free.

simple thorn
rugged bobcat
simple thorn
pallid python
#

Anyone have some rscc about basics of cryptography?

austere lodge
#

Can someone tell me what u learn in cybersecurity??

teal onyx
#

alot

#

you can probably just google the course and see

thorn obsidian
austere lodge
#

Wdym theory part? @thorn obsidian

thorn obsidian
austere lodge
#

Oh ok

#

But I want to know what u learn when u enter cybersecurity in college?

#

Does anyone know?

#

do u have to use kali Linux in CyberSec?

sinful cliff
austere lodge
#

but I’m guessing they teach u to use it right?? @sinful cliff

sinful cliff
# austere lodge but I’m guessing they teach u to use it right?? <@936769916072259654>

i wouldn't know, you have to check out the specific college program that you might be interested in
the whole it security space is huge, you will have to choose a track that intrest you and have a salary profile that you think would be good
it's not only about technical security, there is also policies, legal and compliance to different regulatory frameworks as well, so it's more diverse than you might think at first

sinful cliff
# austere lodge Oh alright

if it's the technical aspects you are most interested in, then a good and deep computer science foundation will help a great deal

raven frost
#

Cybersecurity is more of a mindset than anything else. You’re always thinking about ways you or others could break, compromise or otherwise subvert systems. You do this either as an offensive person who does pentesting/red team/bug bounty or you do it defensively by thinking about threats and helping a team mitigate them, combined with data from reliable sources.

#

Other than that, cybersecurity isn’t really anything, it’s a huge collection of individual things. I’d look at the course syllabus for the course in question as others said above.

#

I’ve worked as an engineer in anti malware, device security, web security, application security and currently I do security on an operating system.

tribal jetty
#

hi

#

can anyone hit an XSS attack django charfield??

thorn obsidian
#

Depending on you handle your input, yes it is

#

Simple rule: Never trust user input

tribal jetty
thorn obsidian
#

By making a simple XSS payload

#

It depends on how you use and manipulate the data the user gives. You need to do the backend work to safely display the data

kind knoll
#

how does one learn about cybersecurity and ethical hacking? are there any suggested books/courses/tutorials/whatever?

thorn obsidian
#

It might seem a lot, there are lots of fundamentals to learn that you might think have nothing to do in relation with them - but it does. Learning cyber security takes time and you will need it.

crisp plover
#

Want to join a new cryptocurrency project? You can log in and register to earn good money

sinful cliff
#

!rule 6

past starBOT
#

6. Do not post unapproved advertising.

sinful cliff
kind knoll
thorn obsidian
#

<@&831776746206265384> Probably crypto scam

cyan wedge
thorn obsidian
iron wadi
#

I just realized the follow files were committed to my git

.\venv\lib\site-packages\sslserver\certs\development.key
.\venv\lib\site-packages\sslserver\certs\development.crt

The files are used with the sslserver package to enable https over locahost so that OAuth2 client providers that require it can be utilized in tests/development.

Those certs were generated with mkcert on my development PC and added to the trusted store. I know that the RootCA file is basically dangerous if shared and can be used for complete admin control to do anything on that machine. But I'm not sure if this key file represents that same danger.

To be safe and because im not sure ive made the git repo private.

#

Those two files were a pfx file generated with mkcert actually, for the localhost

#
openssl pkcs12 -in [yourfile.pfx] -nocerts -out [drlive.key]
openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [drlive.crt]

These commands were used to break it down into key and crt files.

#

my question is, is that key file sensitive or is it just the RootCA file that is?

#

the contents of the key file is a "PRIVATE KEY" in plain text.

#

NEVERMIND!

#

The files were not committed lol, because they are in the venv dir which is omitted! wooo. lol

thorn obsidian
#

I was hoping you didn't have committed the venv folder

#

That would be a lot of useless files uploaded pandaWeee

iron wadi
#

yeah i didnt.

#

I actually forgot that I moved those files into the venv to avoid this problem

#

And kind of got worried when i did a git add -A

iron wadi
#

there is nothing in the venv as large as that.

thorn obsidian
#

Yeah true

thorn obsidian
#

can i have a cookie for finding this message?

iron wadi
grizzled lake
#

is there any established tool for analyzing pdfs and checking them for malicious content?

#

i am not a security person, but occasionally i have to deal with pdfs that might have come from less-than-trustworthy sources

raven frost
#

Click PDF and you’re good to go

grizzled lake
iron wadi
#

Where is the best place to host a docker container for django + postgres. Right now I only have the pg install containerized and ive never written a docker file that composes with more than one service so im not sure how to even do that part yet. But lets say I have as simple web app and I want to start the live database "alpha" in stage/prod.
I'm probably also going to want a cloud based WAF.
i was thinking cloudflare or linode but idk, idk what i really need at this scale of testing still.

#

i mainly just want to learn to use the WAF and protect the database and have it accessible to users in a testing phase.

hexed blade
#

is this a good way of implementing salt? or is there a better way? I want to be able to store users' passwords securely

iron wadi
#

the best way to implement salt is to use hashing algorithm that handles this for you since implementing crypto is easily done wrong by someone who has not studied and practiced it specifically

#

search "dont roll your own crypto" for more info

#

i would say if you want to learn more about that yourself the best way would be to find flaws and merits with the current solutions being used.

#

and not just implement crypto from instructions on a site.

severe cipher
#

!rule 5

past starBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.

severe cipher
#

Hi

#

I want to start cyber security stuffs from beginning

#

So help pls

#

🥺

thorn obsidian
#

It might seem a lot, there are lots of fundamentals to learn that you might think have nothing to do in relation with them - but it does. Learning cyber security takes a lot of time and you will need it, don't expect to learn the basics within a few weeks or something, then learning more takes even more time.

sinful cliff
sinful cliff
iron wadi
#

argon2 is the one i forgot about.

#

but yeah i was trying to remember the name of that one

hexed blade
#

so then would it be best to implement argon 2 so i don't roll my my own stuff?
I won't be able to look at it until later tonight but it is it friendly enough to implement?

sinful cliff
sinful cliff
#

Argon2d is generally the one to use unless you need protection from memory side-channel attacks, for example if you would share hardware with a would be attacker, in cloud deployments this may be a concern and then Argon2id would be a good compromise between the two

hexed blade
#

I have a flask app in azure so would argon2id be best for it then?
Also, do you know of a library that supports argon2 and by extension argon2id?

sinful cliff
hexed blade
sinful cliff
fading forge
#

@spark heart

#

ok so

spark heart
#

hey
i believe its here we should discuss it

thorn obsidian
#

Yes

fading forge
#

So players connect to your server right?

spark heart
#

alright

#

yes

fading forge
#

Is it a network of servers?

#

or only 1 server?

spark heart
#

1 server

fading forge
#

Alright then

spark heart
#

and players connect to it

fading forge
#

use a network monitoring tool

spark heart
#

about 8 - 9

fading forge
#

and save every IP of every player

spark heart
#

ohh

fading forge
#

If someone cheats for example

spark heart
sand tapir
#

is this a minecraft server by any chance

fading forge
#

ok wait

thorn obsidian
fading forge
#

how do you make players connect to your server?

#

once a player connects

spark heart
fading forge
#

make a user id with the corresponding IP on your server

fading forge
sand tapir
thorn obsidian
#

Oh I see

fading forge
#

idk how BombSquad works

#

ok wait

#

Do you host the server on your device/pc?

sand tapir
#

do you have access to the server itself

#

i.e terminal

fading forge
#

^

thorn obsidian
fading forge
#

yea

thorn obsidian
#

The game should have it

fading forge
#

but they want an ip ban

thorn obsidian
#

Oh

fading forge
#

so that automates that once the same ip joins

#

it bans

#

can be done with pyautogui ig

thorn obsidian
#

Well does the game allow you to see ips of players?

fading forge
#

well

sand tapir
#

i'm not well versed with it but surely iptables can block a non-changing IP

fading forge
#

there is a way ig but I won't share it because one on one ip logging is illegal afaik

thorn obsidian
#

Well. This is taking some turns

spark heart
fading forge
#

so wait

spark heart
fading forge
#

its the game's servers?

#

like if someone were to make a malicious server

#

can they send packets directly to your client?

fading forge
spark heart
#

when they join and play

#

i can find their ip

fading forge
#

lemme send u a scapy tutorial to capture connected IPs

#

I mean if you're on a linux server

spark heart
#

but there are many ip's

fading forge
#

u can use scapy like

spark heart
#

oh

thorn obsidian
#

I believe you can mask your ip if you have a vpn aye?

fading forge
#
i = sniff()
print(i.summary())```
#

that captures your server's packets

spark heart
fading forge
#

although

#

I would say you read the TOS first

#

i forgot about that lol

thorn obsidian
#

But if those players hate lag

fading forge
#

also

thorn obsidian
#

Yea. Better than nothing

fading forge
#

BombSquad is a competitive af game

#

I wouldn't guess that the players would use a VPN

#

that just beats the point

thorn obsidian
#

Hm

spark heart
#

the thing is, if i ban their ID (unique id of their account) they will just create new id and spam the server or abuse

fading forge
#

I would just connect to a diff server

fading forge
#

Ok well

#

in some countries its easy to file a police report

spark heart
#

so i thought, ip ban is better, but in order to do it this time.. i would like to see where it is
that is why, i wanted ip + country location

#

so its faster to ban

fading forge
#

If the server is hosted on one of your machines

spark heart
#

manually i will need to constantly check

fading forge
#

you can log their ip

#

and report to law enforcement

#

if its too damaging

spark heart
#

haha no its ok

fading forge
#

but if its not

#

I would just relax

#

and chill

#

while they stop

sand tapir
#

how come you need their country if you want to IP ban them

thorn obsidian
#

@spark heart are you running a private server? for family and friends only?

fading forge
#

its just general info

#

ig

thorn obsidian
#

You know, you could just make a new server and not tell the people?

#

If it's easy?

sand tapir
#

i think in some ways it would be overcomplicating a solution

fading forge
spark heart
#

because, the players spamming and ruining the game for everyone,. i know which country it is..

fading forge
spark heart
#

but it would be better, if everytime we capture ip + name of the country

fading forge
#

cause cool ig

#

looks pog when u get the country prob

thorn obsidian
fading forge
#

Wanted to implement that in my server

#

for each time someone tries to connect

#

or bypass the security

thorn obsidian
#

You could scare them by telling them their country and all that. That legal?

spark heart
#

i don't think they care

#

i mean, they are not to be reasoned with

fading forge
#

Plus I wouldn't do that to kids trolling

#

I mean

#

If they are abusing the server

spark heart
#

but well, getting ip isn't the hard step.. but getting ip + name along of country

fading forge
#

then you probably should take an action

spark heart
fading forge
#

its the other way around

thorn obsidian
fading forge
#

So weait

#

wait

spark heart
#

its known much among players

thorn obsidian
#

you can use whois to get the domain info of the ip - it contains address

fading forge
#

it's hosted on BombSquad's servers?

thorn obsidian
spark heart
#

hmm yes

fading forge
#

It just sounds like you want to ip log the shit out of every player

spark heart
#

haha no

thorn obsidian
#

Can't you complain to the people who own the servers?

fading forge
#

^

spark heart
#

im not sure if i understood well

fading forge
#

You probably wouldn't want to take the action on yourself

spark heart
#

i mean bombsquad server

#

its not a server..
ok let me explain

sand tapir
#

do you own the server

spark heart
#

yes

sand tapir
#

right

spark heart
#

i open a dedicated host (ubuntu)

thorn obsidian
#

Redacted

#

That what most domains have to be honest

spark heart
thorn obsidian
thorn obsidian
fading forge
spark heart
thorn obsidian
spark heart
#

it works to block.. i tried it. i couldn't enter my server

fading forge
#

what

spark heart
#

but, the thing is, the person who spams.. his ip changes.. but country remains same

fading forge
#

just block certain IPs

thorn obsidian
#

Just setup a firewall and drop everything coming from that IP 🤷

spark heart
#

although he does come with same name

thorn obsidian
thorn obsidian
spark heart
#

he will create another account

thorn obsidian
#

Hmmm

#

Block the name?

fading forge
#

that's too hard to accomplish

#

ig

spark heart
#

and there are kids in the server

#

brb

thorn obsidian
#

And if anyone else from that region exists, include a email or something so they can complain there

#

Then allow their ip to enter

#

Can't think anything better

#

Cya later

spark heart
#

sorry back

fading forge
#

You could probably use a way to verify

#

although I wouldn't guess that players will be ok with that

spark heart
#

yea

#

personally, i have no interest in ip, or even thought about it, but things gotten abit heated up

#

ig the person is asking for it

fading forge
#

which ip

#

your server's?

spark heart
#

no

fading forge
#

Btw

spark heart
#

people connecting

fading forge
#

I wouldn't recommend you run a server without knowing basic cyber sec

#

if they have access to the server's ip

#

they probably gonna scan the shit out of the server

#

till they find vulnerablities

fading forge
#

that's a weird thing to ask for

#

That sounds like someone is having trouble with someone else

spark heart
#

well not reaally

#

i think there was a command in ubuntu, which showed ip with country

#

but u had to use geoip too

#

but im not familiar with that

fading forge
#

hmm

#

well

#

The IP of which machine?

#

the clients connected?

spark heart
#

yes

#

clients connecting to the game's ip

fading forge
#

to the server's IP*

#

please make sure you're using the right terms

spark heart
#

yes

#

sorry

fading forge
#

as they can change the whole situation

#

ok so

#

there are ways to log connected IPs

spark heart
#

as you can see , server ip sends (packets?) to these ip

fading forge
#

to your server

spark heart
fading forge
#

there

spark heart
#

u can use ufw logging

fading forge
#

so you want to the know the country?

spark heart
#

yes

fading forge
#

alright hol on

spark heart
#

shown with ip

fading forge
#

also imo

#

you should block connection from low ping proxies

#

and tor nodes

#

so like try to detect proxy chains

#

as they can be used by bad people

#

only allow VPNs and responsive proxy IPs ig

#

I mean some people care about security

#

ok wait

spark heart
#

hmm

fading forge
#

nvm what i said

#

now anyways

#

automate this site ig

#

try to make requests to it

spark heart
#

ohom

fading forge
#

to automate the process of looking up the IP

spark heart
fading forge
#

wait nvm

#

"With the exception of Google, Yahoo!, Bing, AOL, and Ask, You agree that You will not use any spider, crawler, robot, or other computer program to copy or index this Website or any content contained therein in any way."

#

you can't scrape the website

#

ig you can use pyautogui tho

spark heart
#

what is that?

fading forge
#

a library that automates mouse and keyboard actions

#

You can run a lightweight VM and set up some pyautogui actions

#

so that

#

it doesn't interfere with your distro

spark heart
#

i see

#

but from a terminal

fading forge
#

iirc there aren't ways to know the location from terminal

#

lemme check tho

spark heart
#

hmm i think they do

#

because, long time ago, a friend of mine tried it

fading forge
#

ok nvm u can do this

#

curl https://ipvigilante.com/<your ip address>

#

this what i found on the internet

#

it gives country and stuff

spark heart
#

yes

fading forge
#

so then

spark heart
#

but it shows your ip

fading forge
#

pipe the output to a script

#

and make it show it in a more readable way

fading forge
#

wait

#

why do you want country tho?

spark heart
#
curl -s https://ipvigilante.com/$(curl -s https://ipinfo.io/ip) | jq ' .data.country_name'
#

this also exist

fading forge
#

i forgot to ask you that

spark heart
#

and

fading forge
#

so like

#

to make an abuse prevention system?

spark heart
#

kinda

fading forge
#

so for example if many IPs are coming from the same location

#

you block the certain location for some time?

spark heart
#

more or less "yes"

#

but the thing i don't get it

fading forge
#

ok sounds legit

spark heart
#

is, its from the same country,, just ip is changed by 1 or 2 digits sometimes

fading forge
#

i see

spark heart
#

that's how i know its the same country

fading forge
#

well

#

the DHCP will probably give a whole different IP

#

ISPs aren't dumb

#

but like

spark heart
#

to make life easier.. i thought about running the command.. and getting ip directly with country (rather to have to search manually which takes time)

fading forge
#

you can end up blocking every player in existance

spark heart
#

damn

fading forge
#

oh wait

#

i just realized that

spark heart
#

ngl, im not a professional codder or even "decent" one
i just want to make it pleasant for players to enjoy the game

fading forge
#

IP addresses can be in different location with just 2 digits different

spark heart
grizzled lake
#

so you could use docker-compose for orchestration while running your local dev instance, and then use something else to stand up the production system (still using docker, but maybe not compose)

iron wadi
grizzled lake
#

maybe it is!

iron wadi
#

I see. Are they not containerized then if the services are written together with compose?

grizzled lake
#

ah wait it actually is possible i think

iron wadi
#

yeah i thought it would be but idk either

grizzled lake
#

so you still have two separate container images: one for your python app, one for your database

#

docker compose just makes it easier to start/stop them together, set up bind bounds, set up ports, etc

iron wadi
#

right.

grizzled lake
#

https://www.docker.com/blog/how-to-deploy-on-remote-docker-hosts-with-docker-compose/ it does look possible, would have to sift through some docs though

The docker-compose tool is pretty popular for running dockerized applications in a local development environment. All we need to do is write a Compose file containing the configuration for the application’s services and have a running Docker engine for deployment. From here, we can get the application running locally in a few seconds with a sing...

iron wadi
#

I tried it once before and it didn't work, mostly because i was not reading the documentation on the docker compose file. I was just looking at other files and trying to mimic it

grizzled lake
#

yeah it has a lot of features, e.g. profiles

thin cosmos
#

Can you hack with python?

iron wadi
#

im not super good with nginx config but ive done it once. I had a server that... worked by the grace of god after much fighting.

#

Another thing I found when i looked into it a few months ago, is if you search for a docker compose file for this purpose...

#

not a single person is going to give you a similar file.

#

so i dont know who to believe

#

it probably is best if i just go through and do it myself and not rely on someone to write the file for me because of that

#

or to template it

thorn obsidian
solid mica
#

Hi, I'm new to Python due to the needs for my final year project. For what I chosen was a keylogger project. So I follow some guides on Youtube but in the end the script doesn't seems to work that I couldn't find the error which makes that I can't compile it to .exe format. Can any senpai guide me or check it for me please? Thanks for reading' this thread.

past starBOT
thorn obsidian
#

Can you send the code in a file or a link? And are you getting any error messages with it when you run it as a Python script? As well as when you try to convert it to an exe.

solid mica
#

I'll send it over to you in dm

thorn obsidian
#

Bet.

thorn obsidian
#

Asking a question like that is like asking "Can you code in Python"

#

Of course you can. But based on what you want to do:

  1. Python is not the solution
  2. You don't need a programming language at all

"Hacking" is not coding a script, execute it and you have the access to a machine - it's much much more complex

thin cosmos
#

I think u just tried to sound super smart rn

raven frost
thorn obsidian
#

Anyone help me plz

signal goblet
#

hello, im trying to make simple sign up form in console, but how can i save it (not talking about txt files) and make it secure ?

raven frost
#

Look at AES for example. Depends on your needs but you could encrypt it and save that down then load it and decrypt it at runtime to use the data.

signal goblet
#

so like i can access it from another pc

raven frost
#

That doesn’t really have anything to do with saving it on disk securely though

signal goblet
#

yeah

raven frost
#

What you do with the data after it’s loaded into memory and decrypted is a separate issue (in your case you want to send it)

#

If you’re asking how to send it securely, you could for example use TLS or SSH

signal goblet
#

i dont know how to make Data to be accessible from other devices that's my problem

signal goblet
#

nope

#

for now im just using json to save it

#

do i need to use sql ?

thorn obsidian
#

what u r looking for?

signal goblet
#

i just wanna make database so i will be able to access it with other devices

thorn obsidian
signal goblet
#

nope

thorn obsidian
#

We put data in a server(computer)

#

and u want to access it from browser ?

signal goblet
#

no from console

thorn obsidian
#

Console?

#

u mean play station ?

#

or Xbox?

signal goblet
#

Terminal

#

me bad

#

ok so i will tell you fully want im trying to make. first i wanna make log in from where person will be able to login. then it will load his/her Data there.

signal goblet
#

yes

thorn obsidian
#

ok ok

#

so I guess ur using Linux ?

#

If yes use Apache server to host ur login page and the data what ever it is

signal goblet
#

i mean this

#

something like this which will save

signal goblet
thorn obsidian
#

well.... u have to install a software that will host the data on LAN(Local Area Network)

#

Install Apache then on windows

signal goblet
#

alright then

#

thankss

thorn obsidian
#

keep in mind when ur machine is turned off u will not be available to access the data since its playing the role of a server

signal goblet
#

Is it possible to be available when my machine is off? Or is it paid to host that?

raven frost
#

@signal goblet note you are asking about a lot of large topics here. Databases, data security, networking, there are entire books on every one of these things. So just be patient with yourself and learn those topics and libraries

#

This is not a 1 hour type of thing

thorn obsidian
#

buy a raspberry pi for that

signal goblet
#

okeyy thank you guys

dark socket
#

(any old computer you've got laying around that you don't use can work too, if you're willing to leave it on all the time @signal goblet )

thorn obsidian
#

Is there a easy one way to do 1 way encryption

#

There are quite a lot of ways

wise pecan
#

Most people use a one way hash and a salt

#

md5 when I actually had to do it myself, most people use some sha variant I think? these days

#

Ah so google says NIST is recommending HMAC-SHA-256 these days

#

This is a bit of code I had using it back in the day:

import bcrypt


class Hasher:

    # Used in check to mitigate leaking information about users having / not having passwords via timing attacks.  This
    # is just a salt without any password hash, it will not match empty strings with bcrypt
    _NO_PASS = '$2b$10$5xBXVFvUAdID3SG3Aq0C9u'
    _SALT_ROUNDS = 10

    @staticmethod
    def hash(password: str) -> str:
        salt = bcrypt.gensalt(rounds=Hasher._SALT_ROUNDS)
        return bcrypt.hashpw(password.encode('utf-8'), salt).decode()

    @staticmethod
    def check(password: str, hashed: str = None) -> bool:
        if not hashed:
            hashed = Hasher._NO_PASS
        return bcrypt.checkpw(password.encode(), hashed.encode())```
#

(I had a situation where the user may not have a password set because they might be using like Oauth, so that's why I do a "no pass" thing)

sinful cliff
wise pecan
#

Yeah, encryption implies decryption (reversal), but most people mean "hashing" when they say it "one way encryption"

sinful cliff
wise pecan
#

I read somewhere, that bcrypt was a little less amiable to GPU cracking cause of the implementation

sinful cliff
#

i would recommend using one of the three available flavors of Argon2 to over anything else, and when in doubt use the Argon2id flavor

#

Argon2 was the winner of PHC and is very resistant to many type of such attempts to optimize the algorithm for brute force against it

wise pecan
#

Are crypto currencies particularly interested in algorithms that aren't crackable? Doesn't seem like a necessary concern for them since its related to ledgers and there's not a particular reason to obscure whats being hashed there

#

Like, you hash the block, but everyone knows the block in BC for example

sinful cliff
wise pecan
#

I suppose, I'm not seeing how that would work tbh, but I'm also not someone technically versed in most crypto currencies.

sinful cliff
#

anyways, crypto currencies was just a rabbit hole, I just mentioned them to way that there are readily available optimized hardware for some 1-way functions due to them, which might be a concern

#

several linux distros are changing to using yescrypt for storage of the passwords
yescrypt was one of the finalists of the PHC which Argon2 won, they are probably both good algorithms

sinful cliff
fair trail
#

I have a hypothetical question. Say you have a table with 50 hashed and salted passwords and all 50 are salted with the same value. Then say a hacker knows 25 of 50 passwords. Can the hacker use the known password information to determine the salt and then knowing the salt use that to decrypt the remaining passwords?

sinful cliff
# fair trail I have a hypothetical question. Say you have a table with 50 hashed and salted p...

the salt isn't generally a secret, it's typically stored in plain text together with the hashed password
the whole point of the hash is to introduce extra data so that the hashes can't be pre-computed as with rainbow tables, hence the same salt should not be reused for several entries
as then an attacker only needs to hash a guessed password once with that salt and then can compare the hashed value to all the accounts using the same salt
if you instead have unique salts you will force the attacker to either concentrate on one account or do the whole hashing for that password for every account they want to guess the password for

wise pecan
#

Yeah the salt makes rainbow table look ups and similar attacks harder, why would anyone use the same salt all the time though anyway?

sinful cliff
#

for someone designing a system and knowing what the whole purpose with a salt is, they wouldn't

#

and for an unknown salt, guessing it would be just as hard as guessing the password

wise pecan
#

well not if you tack it on to every hash

#

I just meant, computationally salts seem pretty cheap

#

I dunno why you'd be like
MUH_SALT = ...

sinful cliff
#

depends on the length of the salt

#

but that isn't the a use for a salt anyways

wise pecan
#

I can see someone on low lvl hardware maybe hard coding a salt I guess

#

They might think its reasonably secure / secret enough, like if someones got to crack the thing open and read the firmware out, and find it in that. And then you still have to generate a rainbow table for that

sinful cliff
#

maybe, but that would be a bad implementation

wise pecan
#

Yeah, but I know hardware guys are not particularly known for their good implementations

sinful cliff
#

sure, better than no salt at all

wise pecan
#

Look at industrial control systems lol

sinful cliff
#

lol, yeah

wise pecan
#

"What do you mean someone could send me a packet that tells the turbine to spin at a rate above stress specifications?!"

#

"Who would do such a thing?!"

sinful cliff
#

classic

wise pecan
#

"Hackers!? In MY secure air gaped network?!" -- Some Iranians probably

#

flicks NSA data tap I'm not a terrorist

sinful cliff
#

yeah, it's really a classic story

wise pecan
#

Well at least the industrial guys are taking it seriously now since then

sinful cliff
#

but it highlight how one should not be narrow minded

#

if something can be abused, sometime in the future it probably will be

wise pecan
#

Yeah, just like you know systems of governance, natural laws, ect ect, f*cking about and exploiting things is why we aren't sitting in bushes slinging crap at each other over bananas

#

To bad we turn it on ourselves half the time

#

but now Im being philosophical

sinful cliff
#

humans are curious by nature, otherwise we wouldn't be where we are today, for better or worse

#

unfortunately intelligence doesn't automatically come with wisdom

#

but i think we are getting a bit off the channel topic now 😉

thorn obsidian
#

hey'

#

can anyone test the security of this web app im making'

fair trail
sinful cliff
fair trail
sinful cliff
#

in the example with an age, if i know one age, like my own or of a friend i will be able to see which people share that age

#

and if i can create more profiles or data entries with the different ages i can decode all other ages as well

fair trail
#

If someone knows user1's age and location, can they determine the "key" and the date?

sinful cliff
#

should probably call that a key rather then a salt, as a salt is used for something totally else

fair trail
sinful cliff
fair trail
#

Ok thanks

sinful cliff
# fair trail Ok thanks

i guess you are going to store it in a database table or something together with the user entry?

fair trail
sinful cliff