#cybersecurity

7 messages · Page 21 of 1

worthy moss
#

What’s this from?

rose sparrow
#

this is just a puzzle that i have created to test a security theory. that's all.

#

let me know if you have any questions

#

so an ASCII message was converted to hexadecimal before being fragmented in a specific way. the challenge is being able to reconstruct the message. the theory that i am challenging is that this fragmentation technique is secure enough to protect the confidentiality of the message.

worthy moss
#

I’ll try it later

thorn obsidian
#

Is this ddosing while True: requests.get(url)?

thorn obsidian
#

it is not, no

#

it's not distributed (the first D in DDoS) and it's not a denial-of-service

thorn obsidian
#

But wouldnt that cause a lot of processing for the website which could potentially denial the service?

#

not as much "processing" you'd create for yourself

#

... no

#

ah

#

you need a LOT of bandwidth to be able to send a number of requests which would start slowing down most modern servers

#

this is why botnets are a thing

#

so basically the same thing but like way more of it?

#

it's a bit more nuanced than that

#

botnets are like groups of computers infected which send those requests, right?

#

yes

#

but you won't be DDoSing anything modern with just GET requests, modern web servers know how to handle that fine

#

most responses come straight from the cache anyways, meaning the web server does 0 processing

#

damn

#

is there like a website or smth that would show how much of that bandwidth you're causing?

#

any such website would be meaningless as it would be different for each receiving server

#

ah

#

in any case, you should keep in mind attempting to DDoS anything which does not belong to you is illegal

#

!rule 5

past starBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, be considered malicious/inappropriate or be for graded coursework/exams.

thorn obsidian
#

I was just wondering

rose sparrow
#

@thorn obsidian you could just make your own virtual server in gns3 and test it out there with multiple virtualised instances of linux

#

thats under the condition that your pc is powerful enough. say around 8gb ram

rose sparrow
#

@worthy moss no luck solving it yet? 😄 no problem

#

i guess its strong after all.. unless someone wants to prove me wrong

worthy moss
#

Oh I’ve not tried

rose sparrow
#

🙂 hahahah

errant burrow
#

If I wanted to create a brute force program the prints out every possible combination of letters numbers and characters how would I do that? What would be a good place to learn that?

rose sparrow
#

@errant burrow i believe itertools.combinations() is what you may be looking for

#

i've done something quite similiar to be honest

#

depends specifically what you are looing for though

#

do you have an example?

errant burrow
#

Thanks. I looked into it and used itertools.product

cold fossil
#

I have one made that I found online that does decent

thorn obsidian
#

@thorn obsidian How do you define a badusb?

#

!rule 5

past starBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, be considered malicious/inappropriate or be for graded coursework/exams.

thorn obsidian
#

oh, sorry sorry i did not know

#

i will delete my text, sorry

rose sparrow
#

Still surprised no one has solved my ctf challenge 😂

#

💪guess it's a strong security 😎

#

I'll give people about 5 more days

cold fossil
#

what challenge?

cold fossil
#

i found it... I have no idea where to start at

rose sparrow
#

@cold fossil hey there I can give you a hint

cold fossil
#

?
I haven’t dabbled in security much but yes?

rose sparrow
#

Are you familiar hexadecimal?

cold fossil
#

A bit yes
I know that you took an ASCII text, converted it to hexadecimal, then split it at specific points

rose sparrow
#

Yes ok so

#

What you need to do us first research what popular fragmentation techniques exist (basic ones). Or you could think of ways in which you could fragment something to make it obscure and reverse the process before applying it on the example I gave

#

For example...

#

Let's say we have abcde

cold fossil
#

You could make it into
Ace and bd which would keep them apart?

rose sparrow
#

Now I could just fragment it in half (sorry meant to ad an extra letter there? But that wouldn't be efficient so I need a better way if fragmenting it

cold fossil
#

Ok I get it now

rose sparrow
#

Yeah I won't five you anymore clues. But hopefully you get the idea

#

Remember there is a reward whoever solves it

carmine wraith
worthy moss
#

no

carmine wraith
#

Oh good. Thanks!

#

Not even in the allowed_file function in the above link?

thorn obsidian
#

uploading the files themselves is safe. as soon as you start processing the files in any way, you need to be sure that user input is escaped and not parsed as-is

#

for example, if I upload a file named $(evil_command).png which gets placed in /uploads, and you have a cron job which deletes all files every night, something like:

for $file in /uploads/*.png; do
  rm $file
done

that would expand to rm /uploads/$(evil_command).png, which would in turn execute evil_command

#

this example is sh-specific, but it applies in most other scenarios as well

carmine wraith
#

I'm still confused, but thanks very much for the help.

thorn obsidian
#

in the example you posted, werkzeug.secure_filename() makes sure that nothing evil in the filename is parsed

#

for example, path traversals are neutered (so someone can't upload a file named ../../../etc/passwd and have it placed in /etc/passwd)

carmine wraith
#

really? I thought that just removes slashes

#

Ok. I think I read somewhere you can remove execution rights from a folder or something.

#

Maybe I just need to do that then. Thanks! XX

#

File uploads has been a really hard task for me..

thorn obsidian
#

execution permission on a folder does not do what you think it does

carmine wraith
#

Oh, I better research it some more.

thorn obsidian
#
The execute bit (x) allows the affected user to enter the directory, and access files and directories inside
#

sort of a misnomer if you don't know about the internals of linux, i agree

carmine wraith
#

Appreciate the tips.

lusty flare
#

i always viewed it as like

#

you have to "execute" on a directory to see inside it

#

idk

cold fossil
#

I think I got the challenge solved

dense locust
#

im taking basic ethical hacking at a community college

#

im in 9th grade and i know basic system administration and can work in the linux terminal

#

is this course gonna be hard?

#

its online btw

lone grove
#

hm

#

network hacking?

#

hacking in general?

dense locust
#

in general

lone grove
#

oh

#

well you're probably set

dense locust
#

it had like sql iunjections and ddos attacks

lone grove
#

if they need to teach you something new it won't be hard

dense locust
#

ok

lone grove
#

if you know the smallest bit of SQL and networking you're good

dense locust
#

cuz it didnt have a prereq just a advisory for cybersecurity fundementals but that class was full

#

ok

lone grove
#

it's recommendation becaue they assume no prior knowledge

dense locust
#

o

#

idk im just starting with college classes

lone grove
#

yeah same

#

i did a intro python course but i already knew python and it was just recommended so i probs shouldn't have taken it

dense locust
#

o

#

ok

#

thx

lone grove
#

no problem

worthy moss
#

ddos attacks lmao

#

ddosing isn't hacking

#

🤦‍♂️

thorn obsidian
#

SQLi also isn't something to worry about if you sanitize inputs + use SQLAlchemy properly

rough schooner
#

Problems normally arise when people don't realize what attack surfaces there are

#

Stuff like user ids which are only referenced in URLs are really common surfaces for SQLi

thorn obsidian
#

User IDs in URLs? 🤔

rough schooner
#

If they are taken in by the server, and used for example to get a name out, which is then displayed back the the user an attacker can change the user id to a SQLi, and just like magic, off goes the database

thorn obsidian
#

Something like ?id=1 ?

worthy moss
#

or in user agents

rough schooner
#

^^

thorn obsidian
#

That's not how you write/setup secure systems. So hopefully no one is doing that 😄

#

You need to be under the impression all user input can be manipulated

#

Headers, cookies, forms, etc

rough schooner
#

I completely agree, it just normally isn't seen as user data because a normal user would never change it

#

Hence leading to insecure systems 🙂

worthy moss
#

xss in useragents is fun

thorn obsidian
#

normal? I've seen plenty of users manipulating a bunch of things they shouldn't 😄

rough schooner
#

Fair enough

#

Once pulled off an xss using user agents. They had left the log file open and the only thing it logged was user agents and ips [in a CTF, not just on a random website 🙂 ]

worthy moss
#

oh nice

#

I had a similar thing but on a real website! (obviously responsibly disclosed it)

rough schooner
#

Ahh, wheres the fun in that

worthy moss
#

realised that logs were sent directly to admins

rough schooner
#

I mean

worthy moss
#

lmao

rough schooner
#

Good job

worthy moss
#

turns out that badly made game sites have a whole load of vulnerabilities

#

it's basically a ctf

rough schooner
#

basically a ctf

#

lol

worthy moss
#

I mean it literally had everything

#

xss in several places, sqli, lfi, possible cookie stealing, possible credential stealing, reverse shell as root, etc

rough schooner
#

Fair enough

thorn obsidian
#

lfi?

worthy moss
#

local file inclusion

thorn obsidian
#

Ah, gotcha

#

Don't see that one mentioned nearly as often as the others

rough schooner
#

How to solve lfi -> Delete PHP

worthy moss
#

not good when there's a file that might as well be called 'credentials.txt'

rough schooner
#

Any of you play HTB?

thorn obsidian
#

file inclusion vulns do happen from time to time

#

would list them as one of the more common vulns

#

@rough schooner no, but i once met the dude who made HTB and I have a badge on my profile to show for it :p

rough schooner
#

Damn 🙂 - Kinda jealous

thorn obsidian
rough schooner
#

👀

cold fossil
#

what is HTB?

thorn obsidian
#

hack the box

cold fossil
#

ah

#

I gotta say, I love the join in method... makes you have to figure out the invite

thorn obsidian
#

yeah it's pretty neat

cold fossil
#

makes me glad I learned HTML

cold fossil
#

I MADE IT!!!

thorn obsidian
#

@thorn obsidian I'd have to say local file inclusion is not mentioned nearly as much as SQLi or XSS though.

rough schooner
#

Please note I have no verification this chart is right, its just a top google result

#

Looks about right though

thorn obsidian
#

@rough schooner But still not as much as XSS or SQLi 😄

rough schooner
#

Yeah

#

Kinda expected LFI to be a bit smaller

thorn obsidian
#

Also, comment spam isn't really an attack

rough schooner
#

That and 'email extraction'

#

More of a post explotation thing

thorn obsidian
#

Surprised directory traversal is as much as it is in that chart

#

Which, mind you, might not be an issue if enabled properly

rough schooner
#

Yeah

mossy junco
#

@fluid galleon sorry, we don't tolerate things like this on the server.

worthy moss
#

surely dir traversal falls under lfi

#

oh it's remote

#

not lfi

#

nvm there's one for local as well

rough schooner
#

rfi isn't directory traversal?

worthy moss
#

yeah I was saying lfi

rough schooner
#

Ah, got you

thorn obsidian
#

directory traversal has nothing to do with file inclusion :)

hollow moth
#

Anyone know of a pure python fuzzy hashing library?

#

ssdeep has weird dependencies and is also unfortunately GPL (legal poison)

hollow moth
#

ctph preferred

thorn obsidian
#

@hollow moth What's wrong with GPL?

mint narwhal
#

GPL is great

thorn obsidian
#

corporate hates GPL because they'd have to publish source

lusty flare
#

whooooo

#

that graph is off

#

might be that it's from 2012

#

XSS and SQLi are like ~65% of reported attacks

thorn obsidian
#

this is "attempted" tho

lusty flare
#

oh one second then

#

let me get my salt

carmine wraith
#

I see people talk about sha1 collision attacks. Isn't it very rare to have a collision with sha1?
Does it mean the person wrote some malicious code, and the file's hash matches the hash of a non malicious file? That seems very unlikely since it was already very rare to have a collision.. what am I missing?

rough schooner
#

Nothing, hash collision attacks are commonly called vulnerabilities meaning while yes, theoretically two passwords could have the same hash leading to a security breach, it is so unlikely that in practise it cannot be exploited.

carmine wraith
#

Thanks Quebec.

rough schooner
#

No worries

thorn obsidian
#

@carmine wraith the problem isn't the collision itself - all finite length hashes will eventually inevitably collide. Rather, the problem is that with cases such as MD5 or SHA1, there are certain flaws in the algorithm which make creating colliding hashes (computationally) much easier. As an example with SHA1, generating colliding hashes with the vulnerability demonstrated by "SHAttered" is 100000 times faster than simply trying to brute force two hashes with a birthday-problem collision

#

as such, as computers become exponentially more powerful, the viable age for these algorithms is shortened drastically

#

which is why they should be avoided in any new software projects

carmine wraith
#

Ooh. Thanks XX.

thorn obsidian
#

this does not impact just things like "file hashes", it also impacts the integrity of cryptography, the core concepts of which rely on cryptographically secure hashes

carmine wraith
#

Ok.

lusty flare
#

and the whole thing of making your files hash match that of a trust file or w/e could obviously have security implications

#

stuff like sha256 is still used for hashing things because it's computationally fast, f.ex

#

so if you're not storing sensitive information

#

¯_(ツ)_/¯

carmine wraith
#

Thanks. bisk.

hollow moth
#

@thorn obsidian @thorn obsidian our project is already open source but GPL requires that whatever you include it in also be published under GPL

#

Hence the term legal poison

thorn obsidian
dense locust
#

how is python implemented in cybersecurity?

thorn obsidian
#

^^

thick onyx
#

well, as far as hacking is concerned, it's not all that hard to implement a password cracker in python. Python also has functionality built into the standard library for cryptographic purposes so I wouldn't be surprised if something's used there. Although in general when it comes to safety it's probably a better idea to not use an interpreted language.

rough schooner
#

Python is a quick, easy and accessible as a language and hence it is often used to pull of custom exploits. In addition it has fairly good support on all platforms meaning it can be used in many places. Although in actuality the only time I ever use it in pen testing is:

python -c 'import pty; pty.spawn("/bin/sh")'
thorn obsidian
#

i use it to quickly prototype various exploits

sage pecan
#

Can reverse engineering help if I want to find vulnerablities in a online working android app like a referral program kind of app?

worthy moss
#

Sure

lusty flare
#

might hit the holy grail

#

they could've hard coded keys into it

proper tiger
#

Devs, I'm havin' trouble with use BurpSuit

#

Every browser I try to open I get a privacy error

#

And I can't skip this

thorn obsidian
#

go to the address burp/

#

click on CA cert on top right

#

import that into the browser you use for pentesting (or system-wide CA store if you want to intercept other applications)

#

@proper tiger

cold fossil
#

how secure would you say a ceasar shift using a custom alphabet after putting random letters into the original string is?
I am not going to be using this for anything major but I am just wondering

thorn obsidian
#

not very.

worthy moss
#

easily crackable by looking at letter frequencies

obtuse siren
#

The problem with Ceasar Cipher/Shift is if you can figure out the implementation, there is not much stopping someone from reversing it.

#

Affectionately known as security through obscurity.

cold fossil
#

alright
I am literally going to be putting this into a game I am making so...
it is going to be a challenge/reward for anyone that wants to dig in the files

thorn obsidian
#

But then you'd be getting into one-time pads

#

But if it's for a game, then it's fine.

cold fossil
#

I mean
I first used a random alphabet that I made, then put a random number in between each of the characters of the main string, then put it through again

thorn obsidian
#

I'd probably just put it through once if it's for a game

#

If it's too hard and the risk/reward is too low, no one's going to care

past starBOT
#

Hey @cold fossil!

It looks like you tried to attach file type(s) that we do not allow (.txt). We currently allow the following file types: .3gp, .3g2, .avi, .bmp, .gif, .h264, .jpg, .jpeg, .m4v, .mkv, .mov, .mp4, .mpeg, .mpg, .png, .tiff, .wmv, .svg, .psd, .ai, .aep, .xcf, .mp3, .wav, .ogg, .md.

Feel free to ask in #community-meta if you think this is a mistake.

thorn obsidian
#

!paste

past starBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

cold fossil
#

of course it doesn't like a .txt file

thorn obsidian
#

this That's how you'd upload

cold fossil
thorn obsidian
#

Really depends on how it's executed. Also, I don't think this is #cybersecurity related

cold fossil
#

true

potent bay
#

if you don't use it for anything secure, a caesar cyper is okay - and rewarding for a player who investigates it.
Not too hard to figure out, especially if you know what to search on google (many free in-web tools to decipher them)
but sb who has no idea what it could be won't find out.

It is not secure at all. If you want something secure, don't use SHA1, don't use MD5 - they are both crackable fast enough. Use SHA2 or better, salted, async keys, stuff like that.
No sec expert, you would need to do research on that yourself.

worthy moss
#

Double rot13 is uncrackable in under 4 quintillion years

thorn obsidian
#

Double rot13 is uncrackable in under 4 quintillion years
( That's a joke for anyone reading this )

olive lark
#

not true! I encrypted with double rot13 once, and my wife was able to read it just by looking at it. Granted she's a cryptography expert, but still.

#

Didn't have to use a pencil and paper or anything

worthy moss
#

wow that's hardcore

#

In that case I'd recommend quadruple rot13. Even with a quantum computer, it's estimated to take more than the lifetime of the universe to decode.

#

The extra two layers harden it to every cryptographic technique we have

fast shore
#

Guys, can you please stop writing all your messages in double rot13. It's making them really hard for me to understand

thorn obsidian
#

Bx, oeb. V fgbccrq. Ab ceboyrz.

olive lark
#

hunter2 hunter2

analog light
#

I found a website that might be vulnerable to SQL injection, but I don't have any previous experiences. is there anyone who's experienced and might would like to help me through it?

#

please ping me if you'd like to join me

thorn obsidian
#

@analog light I'm assuming you don't have permission to be testing the website's security

#

!rule 5

past starBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, be considered malicious/inappropriate or be for graded coursework/exams.

thorn obsidian
#

if you believe you have found a vulnerability, it is in your best interests to contact the webmaster or system administrator and responsibly disclose it to them

analog light
#

yeah but I can't report it if im not sure if its vulnerable or not

fast shore
#

If you have a reason to think it might be then you can tell them

thorn obsidian
#

Does anyone have a basic SYN DoS script?

#

we tend to not share scripts here which are malicious.

candid coral
#

Does someone have an idea how this word is encrypted ?

#

"Mvgtd"

#

It means "Bravo"

olive lark
#

if it's not just a Caesar cipher, no

thorn obsidian
#

probably just a substition cipher or something?

olive lark
#

you could probably come up with a lot of ciphers that would do that

#

I think the technical term here is: you don't have enough ciphertext

candid coral
#

Well it was just a part of the text

#

Here is the entire text : "Mvgtd Em Hrfbocbx Keqprgq Tlb Pvmixc. Tgksep Yt."

#

@olive lark @thorn obsidian I just knew the meaning of the first word pithink

olive lark
#

beats me, I am not a codebreaker

candid coral
#

No worry, I was just curious X)

thorn obsidian
#

...
Mvgtd Em Hrfbocbx Keqprgq Tlb Pvmixc. Tgksep Yt.
Bravo xx xxxxxxxx xxxxxax xxx xrxxxx. xaxxxx xv.
That's all I got, based on what you've given

#

It looks like a basic substitution cipher

#

Though, if the last letter is truly a v, it might consist of multiple substitutions.

#

don't think it's a simple substitution

#

dictionary-based crackers didn't seem to fare well

#

Which makes me believe it's multiple substitutions

candid coral
#

@thorn obsidian How did you got that ?

thorn obsidian
#

@candid coral Well, we already knew what converted Bravo, so I went through all that was there

#

For example, t = v

#

Which if the last letters are Yt, and that's supposed to equal something, and then a v...

#

How many words are two letters long, and end in a v?

#

Unless it's latin ( and even then? ), I can't think of anything.

#

Which is why it could be multiple substitutions

#

But again, I could be totally wrong. 😄

candid coral
#

I think there is something to do with the vegenere subsitution

#

or something like that

#

Thank you all ! @thorn obsidian @thorn obsidian @olive lark

thorn obsidian
#

No problem? I'm not sure I was much help 😄

thorn obsidian
#

... ?

frail kite
#

Which hash algorithm do you prefer?

thorn obsidian
#

Depends, what for?

#

Passwords?

frail kite
#

yes

frail kite
#

what the heck

#

never heard of that

thorn obsidian
#

It's specifically designed to be used for passwords

#

Rather easy package to use too

frail kite
#

how about sha1?

thorn obsidian
#
from passlib.hash import argon2

# generate new salt, hash password
h = argon2.hash("password")

print(h)
'$argon2i$v=19$m=512,t=2,p=2$aI2R0hpDyLm3ltLa+1/rvQ$LqPKjd6n8yniKtAithoR7A'

# the same, but with an explicit number of rounds
print(argon2.using(rounds=4).hash("password"))
'$argon2i$v=19$m=512,t=4,p=2$eM+ZMyYkpDRGaI3xXmuNcQ$c5DeJg3eb5dskVt1mDdxfw'

# verify password
print(argon2.verify("password", h))
True

print(argon2.verify("wrong", h))
False
#

SHA1 is trash and should not be used for passwords

frail kite
#

but one is new

thorn obsidian
frail kite
#

maybe there are zero day

thorn obsidian
#

Also,

Argon2 is relatively new compared to other password hash algorithms, having started life in 2013, and thus may still harbor some undiscovered issues. That said, it’s one of very few which were designed explicitly with password hashing in mind; and draws strongly on the lessons of the algorithms before it. As of the release of Passlib 1.7, it has no known major security issues.

#

Anyway, I'm off to sleep!

frail kite
#

sweet dream

torpid marsh
#

The Wikipedia article claims that the cryptanalysts believe it is broken when less than 10 passes are used

thorn obsidian
#

@torpid marsh only for Argon2i

#

other versions don't suffer from this

torpid marsh
#

ah fair

thorn obsidian
#

you should be using id anyways

#

i and d just by themselves are for special use cases

thorn obsidian
#

don't see how this is related to security, but

#
>>> url = 'https://api.github.com/some/endpoint'
>>> headers = {'user-agent': 'my-app/0.0.1'}

>>> r = requests.get(url, headers=headers)
#

as is explained in the docs

candid coral
#

Hello, does someone know how these codes are encrypted ?

enM4SDBESWx1MGlkYjJnSXk4dG5ENlhRUA==
R3hZWm9hMEdjZ2JMcnFnZUZDRW8=
thorn obsidian
#

equal signs at the end are usually padding for base64

#

however, base64 is simply encoding, not encryption

#

the resulting strings zs8H0DIlu0idb2gIy8tnD6XQP and GxYZoa0GcgbLrqgeFCEo can be anything

candid coral
#

Thank you very much ! @thorn obsidian

thorn obsidian
#

👍 not sure i was very helpful but sure

candid coral
#

It was REALLY helpful, I hadn’t any clue

warped hemlock
#

Wait so how do you know what base it is? Just the number of '=' signs at the end?

thorn obsidian
#

@warped hemlock I honestly don't, but base64 is by far the most popular of these types of encoding due to it fitting in the ASCII range. The equal signs at the end are a peculiarity of how base64 works and are a telltale sign

#

it also decoded into a valid ASCII string itself, which is also a strong indication that that's the encoding used

native pier
#

can anyone suggest me on how to get started and learn CTFs?

warped hemlock
#

Just go to CTF sites

#

imo, OverTheWire is pretty good for first timers

#

@native pier

native pier
#

@warped hemlock thanks!

warped hemlock
#

Glad I could help

worthy moss
#

@native pier picoctf is also great for newbies

#

and there are loads of writeups to help you when you get stuck

thorn obsidian
#

+1 for both overthewire and picoctf

warped hemlock
#

Lol

thorn obsidian
#

you might be interested in hackthebox as well, if you want more CTF-styled challenges

warped hemlock
#

but htb is a bit more advanced if you're not going to get the subscription

#

but if you do then you can practice the retired machines that are easier

thorn obsidian
#

aye, but you can always spin up a retired machine which has writeups for it available which you can consult whenever you get stuck

#

or, actually, was retired machines a VIP-only thing? I can't remember

warped hemlock
#

Yeah retired is only VIP

thorn obsidian
#

ah, shame

warped hemlock
#

'tis

native pier
#

@rak1507#1964 thanks!

unkempt thorn
#

How does one detect routers with nmap? Aside from your own

thorn obsidian
#

detect routers? As in, IP addresses?

unkempt thorn
#

Yes. How to differentiate between regular devices ip's and router ip's. Is this possible?

olive lark
#

I'd assume that if you ran traceroute, any IP apart from the first and last is a router

#

🤷

unkempt thorn
#

I thought it wouldnt be that simple but if thats the case then thats great. Thank you @olive lark

olive lark
#

caveat: I know very little about networking 🙂

warped hemlock
#

lol

#

@unkempt thorn are you looking for specifically routers or just devices connected to a network?

unkempt thorn
#

Specifically routers @warped hemlock

warped hemlock
#

yeah then idk

thorn obsidian
#

With saying Aside from your own, I'm not sure if this is something we should be giving assistance on

thorn obsidian
#

"list, tuple and dictionary"? Can you explain what you mean by this

thorn obsidian
#

You're supposed to look up the algorithms and implement them with Python

#

Generally, we don't help with homework assignments

#

!rule 5

past starBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, be considered malicious/inappropriate or be for graded coursework/exams.

warped geode
#

oo shit my bad : )

weak bluff
#

telemetry disabling tool

thorn obsidian
safe bear
clear summit
#

does anyone wanna be my friend and teach me a little bit about how to find the operating system of a ip?

austere fjord
#

@clear summit

#

Depends what OS you have, Windows >search > type cmd > in the terminal type ipconfig > you'll see ipv4 and that's your ip, while the default gateway is the router ip

If you're using linux > go to terminal > command line > type sudo ifconfig (if you're using a non root user that has sudo privs) > again it's the ipv4 of your connection.

lusty flare
#

2048 binary bits on the wall, 2048 bits, factor 829 down, pass them around, 1219 bits left on the wall

lusty flare
#

during a security review Which? magazine commissioned of a Ford car the researchers believe they've found a Ford manufacturing plant WiFi key saved in the uhhh....

#

dash system?

#

it's not ICE (in car entertainment) anymore, is it

#

"In Vehicle Infotainment", IVI.

#

fuck sake industry. stop trying to sound like jerks.

clear summit
#

what if i needed to find the all the ipconfig information with someone elses ip address? @austere fjord

warped hemlock
#

So you want to scan someone else's ip?

#

Just use nmap

#

But if you really want to get the exact information of ipconfig on another ip then you need a reverse shell

austere fjord
#

@clear summit Are you trying to find their ip our their default gateway?

clear summit
#

well im trying to find the os of my friends computer to help him and we only have his ip address

austere fjord
#

@clear summit the ipconfig information doesn't matter because of NAT, network address translation

clear summit
#

ohhh

austere fjord
#

everyone uses the same private IP addresses

clear summit
#

ok

warped hemlock
#

wait is it a public or private ip

austere fjord
#

IPV4 addresses were running out they used NAT to start translating public IP address into private ones and everyone uses the same private LAN ones like 192.168.1.1 etc

#

ipfconfig

#

shows private IP

#

which means nothing

warped hemlock
#

Ik that

clear summit
#

oh ok

warped hemlock
#

Im asking if he has his friend's public ip

clear summit
#

so how do i find the os using his public ip address

warped hemlock
#

nmap

austere fjord
#

yeah

clear summit
#

do i need kali linux to get nmap? or can i just download it?

austere fjord
#

kali linux is good

warped hemlock
#

you can download it on anything

clear summit
#

oh alirhgt

austere fjord
#

what are you wanting to do exactly?

warped hemlock
#

It's not necessary to download a whole OS for one program

clear summit
#

lol yea

lusty flare
#

there is a router between you and your friend's computer. you're not going to be able to OS identify through NAT

austere fjord
#

yeah but if you want to learn more kali linux is the way to go

#

might as well

clear summit
#

alright

austere fjord
#

@lusty flare yeah router OS

warped hemlock
#

Some would say Parrot but it's pretty much Kali Lite

lusty flare
#

also i don't recommend Kali and would suggest learning the tools on a case by case basis. any tutorial that works on Kali should be fellowable on another OS

warped hemlock
#

^^

austere fjord
#

@lusty flare I disagree

lusty flare
#

if you're gonna use Kali run it in a VM

clear summit
#

oh alirght

lusty flare
#

then we can agree to disagree

#

:3

austere fjord
#

@clear summit is this a one time thing or are you actually learning?

warped hemlock
#

Ok I think misty got the point 😆

austere fjord
#

@lusty flare router OS's are important haha well nvm logins are usually admin anyway

#

LOL

clear summit
#

so all the information i can learn from someones public ip address using nmap is all just information about their router?

lusty flare
#

yes

#

in general

clear summit
#

ohhhh

#

ok

austere fjord
#

@clear summit what is your end goal?

warped hemlock
#

OS of the device

clear summit
#

^^

austere fjord
#

@clear summit I mean are you trying to learn more about it?

clear summit
#

yessir

austere fjord
#

@clear summit I highly recommend starting kali linux

#

there's other stuff that are related

clear summit
#

oh alright

austere fjord
#

such as packet sniffing on wireshark etc

lusty flare
#

i recommend starting on stuff like over the wire or some CTF's tbh

clear summit
#

oh ok

lusty flare
warped hemlock
#

Just go to tryhackme

#

That's easier and more helpful

clear summit
#

ok

warped hemlock
#

OvertheWire is more of a place to practice

austere fjord
#

@clear summit you should get a virtual machine if you have windows. then isntall kali linux on the virtual machine

clear summit
#

oh alright

#

thats a good idea

warped hemlock
#

I think we're scaring him/her/them

clear summit
#

LOL nonono

#

its all very good information

austere fjord
#

also

clear summit
#

lol

austere fjord
#

if your'e going to do nmap scans etc

clear summit
#

ye?

austere fjord
#

VPNs, proxies. Stunneling

#

🙂

clear summit
#

alright

#

hehe

warped hemlock
#

Stuneneling?

lusty flare
#

also: you probably shouldn't be doing nmap scans on public IP's without the end users permission

#

your ISP also might not like that behaviour

#

just a heads up

clear summit
#

sir yes sir

austere fjord
#

@warped hemlock yeah TLS encryped proxy

lusty flare
#

in some countries it's also potentially illegal

austere fjord
#

ISP might not bat an eye

#

thinking it's regular traffic

clear summit
#

can your isp see through stunneling?

#

o

lusty flare
#

or they could terminate your contract under a malicious use clause

austere fjord
#

no

lusty flare
#

you know, swings and roundabouts

clear summit
#

thats true

lusty flare
#

but advising people to "use proxies" to avoid that stuff is probably not great steve

austere fjord
#

VPN > Stunnel > Tor is the way I'd do it

warped hemlock
#

There's no privacy 😔

clear summit
#

lmao alright

austere fjord
#

true

#

proxies suck anyway fucking slow af

#

@clear summit Don't do anything dumb though ahah

lusty flare
#

which means read read read stuff

clear summit
#

@austere fjord yes sir

#

yes sir

warped hemlock
#

Yes sir

austere fjord
#

@clear summit you can practice on your own router btw

#

try cracking it

clear summit
#

oh alright

warped hemlock
#

But wireless attacks need an external wireless (forgot the name of the thing)

#

dongle?

austere fjord
#

yes

warped hemlock
#

yes

clear summit
#

oh yes

austere fjord
#

alfa wifi

#

is a good one

warped hemlock
#

One of the best

clear summit
#

ohh

warped hemlock
#

I feel like we just telling everything

#

Do you have any questions?

austere fjord
#

true

clear summit
#

lol

austere fjord
#

this is probably too much in one sitting haha

clear summit
#

kinda +_+

#

LOL

austere fjord
#

I'm actually fairly new, started 6 months ago.

#

trying to get into python now.

#

what about you guys?

olive lark
#

10-15 years

warped hemlock
#

Casually flexes

austere fjord
#

damn

#

do you keep learning new things or is it more mastering the same concepts?

olive lark
#

I do keep learning -- it keeps changing out from under me! async gaaaah

#

there's also mastering the same concepts -- I have a colletion of toy programs, suitable for beginners, and I'm always making little tweaks to 'em. Mostly for readability

austere fjord
#

you're in cybersecurity?

olive lark
#

nah

#

just a backend web service developer

lusty flare
#

i've been interested in cybersecurity as a hobby for about 12 years or so

#

and i've worked as a sys / net admin for 3

warped hemlock
#

Look at you all with so much experience

austere fjord
#

amazing

lusty flare
#

doing ctf's for fun isn't really that much experience :p

austere fjord
#

what's ctf?

warped hemlock
#

Capture the flag

lusty flare
#

doing sec as a hobby has been useful in sys / net admin job though

olive lark
#

Cluss Ter Fook

warped hemlock
#

lol

lusty flare
#

you've got a target device or devices and you've got to figure out how to attack them to obtain flags

#

usually in the form of a key

austere fjord
#

interesting

#

so just challenges

lusty flare
#

yeah. so you'll download and run a VM that'll be all setup / pre-loaded with the challenge

austere fjord
#

cool simulated game kind of thing

#

must get boring though same shit maybe?

lusty flare
#

what do you think being a pen tester must be like

austere fjord
#

fun

warped hemlock
#

lol no

austere fjord
#

because it's a business

daring sedge
#

Thats the people who click right?

austere fjord
#

like any other business

#

repeat and grow

daring sedge
#

or twist them if they're those funky ones

#

and I assume they mess about with ink cartridges and nibs for fountains

lusty flare
#

oh charles

daring sedge
#

(i'm sorry, I didn't realise I was clicked onto an on-topic channel)

austere fjord
#

has cybersecurity been in demand?

#

is it increasing?

lusty flare
#

i'm pretty confident the majority of pen testing is running the same bunch of scripts against targets to see what comes out and then writing a massive report about it

#

yes

austere fjord
#

and what is the reason?

lusty flare
#

it is a booming market

#

the reasoning being we're finally making people take security seriously with laws

#

well, one of them

austere fjord
#

yeah

#

the penalties are astounding

#

20k per PII

#

something like that

daring sedge
#

At my university cyber sec degrees are more popular than all the other computing degrees combined. So there are definitely a lot of junior people in the market. I do however get the feeling that whats more in demand is actual experienced, more rounded individuals

lusty flare
#

^

austere fjord
#

I see what have they learned?

lusty flare
#

some security professionals never start as security professionals

#

as broad a statement as that is

austere fjord
#

I know, i definitely did not

#

lol

lusty flare
#

because quite often having some other skillset is pretty darn important

austere fjord
#

yes but like what?

lusty flare
#

say a network or systems admin with experience

daring sedge
#

There's an ethical hacking unit which basically just teaches them how to use a bunch of common tools - the kind of stuff you get in Kali. There's tonnes of GDPR and legal stuff, some amount of reverse engineeringy bits

lusty flare
#

or if you're dealing with some other types of security, say reverse engineering stuff, maybe you want a really good c developer or something

#

and a cyber security course isn't particularly going to give people that level of skill set

austere fjord
#

c developer, is python going to cut it?

lusty flare
#

sure.

#

python is pretty popular in sec

austere fjord
#

cool

warped hemlock
#

But C is going to better in my imo

austere fjord
#

i'm doing python cybersecurity and machine learning next.

lusty flare
#

i'm not sure i'd like to work in pen testing. i'd imagine you end up writing the same shit a lot.

#

i guess that's what templating is for.

warped hemlock
#

lol

austere fjord
#

was cybersecurity always popular or this a recent thing?

lusty flare
#

the importance and depth of security has grown as technology has become more a part of our daily lives.

#

it wasn't a big deal if your windows 95 computer directly connect to the internet over a modem got bricked by someone

#

maybe some documents

austere fjord
#

I see

#

now everything is there

#

bank accounts etc

lusty flare
#

exactly

austere fjord
#

yeah

#

would you guys do an internship to get your foot in the door?

#

how does it work

olive lark
#

where I work, an internship is just a temporary job, but if you do well, you're pretty much guaranteed a full-time position at the end of it

austere fjord
#

am I going to learn anything though

olive lark
#

where I work? You'll learn so much you won't have space to hold it all

austere fjord
#

damn

#

so internships are useful

olive lark
#

more than you ever bargained for, Son!!

#

well I've only worked with ... maybe 3 guys who started as interns. It was useful for them 🙂

austere fjord
#

yeah real world knowledge would be cool

#

are there places like colleges or something where you could just go and watch them?

#

get involved as a volunteer although taht must be a liability?

olive lark
#

I suspect you're not going to learn much real-world stuff in college

#

you'll learn something, and some of it will be useful

#

but I'm kinda prejudiced against college

austere fjord
#

I wouldn't go to college

#

I'd go to their department and talk to a professor

warped hemlock
#

Why's that?

olive lark
#

I did, but consider it to have been a mistake

austere fjord
#

and just sit in etc

#

college is a waste of tme

olive lark
#

@austere fjord you should definitely try it, since it won't cost you anytyhing.

#

if you're learning; great. If not, do something else.

warped hemlock
#

But you learn something don't you from college

austere fjord
#

true would big companies allow a volunteer?

olive lark
#

sure you learn some stuff

#

and some of that is actually useful

austere fjord
#

@warped hemlock nothing you can't learn on your own for free and faster

olive lark
#

but is it worth four years and a lifetime of debt? 🤷

austere fjord
#

the CCNA cost me $350 bucks lol and 3 months of study

#

I did it for fun.

#

I couldn't believe no prereqs

olive lark
#

ha I used to work for a company that taught CCNA courses

austere fjord
#

haha

#

it was painful though those 3 months omfg

olive lark
#

I know zip about networks, but that stuff sounded awfully difficult

austere fjord
#

yeah it was tedious...subnetting

#

and vlans...the commands etc

olive lark
#

if you're good that that kinda thing, there's jobs-aplenty

austere fjord
#

yeah still trying to figure it out, I'm more of an entrepreneur.

#

delving into this for possible expansion.

#

what else is there to do with the quarantine though haha, how are you guys holding up?

olive lark
#

not so terrible honestly

#

my wife and I "go to work" every day around 8; we sit at our desk and do our thing

#

we get outside and talk a walk every day

#

lotta online meetings

austere fjord
#

sounds nice actually

olive lark
#

she loves it 🙂

#

also the cat like having us around

dense locust
#

when talking abt nmap and differnet protocols what does it mean that an application is listenng

#

?

warped hemlock
#

It just means it's waiting for connection on that port

dense locust
#

o ok thx

warped hemlock
#

So if an application is listening on port 80 then it's essentially waiting for another application to make a connection on port 80

dense locust
#

y is the app waiting for another one to establish a connection

warped hemlock
#

Well what is a connection? What does it require?

#

The communication between two nodes

dense locust
#

mhm

warped hemlock
#

You cant have a connection with yourself 😆

dense locust
#

so its essentially waiting for the server to conect to the port?

warped hemlock
#

It doesnt have to be a server

#

but yes

dense locust
#

ok thx

warped hemlock
#

np

thorn obsidian
#

@austere fjord

VPN > Stunnel > Tor is the way I'd do it
Why, though?

austere fjord
#

@thorn obsidian Nested VPN >Stunnel>
Tor

#

the 2nd VPN client would be from the virtual machine from the 1st VPN host

thorn obsidian
#

That's an incredibly high level of unnecessary

austere fjord
#

the S tunnel provides TLS encryption so ISPs might overlook it as normal traffic

#

yeah the TOR part may be unnecessary actually

thorn obsidian
#

What's the threat model in all of this?

warped hemlock
#

Throw all that on top of TAILS 😆

austere fjord
#

well we gotta consider latency

#

so I'll get rid of TOR

thorn obsidian
#

@warped hemlock Except, Tails by default is Tor

warped hemlock
#

Ah yes

austere fjord
#

nested VPN and S tunnel

#

and I'm good

thorn obsidian
#

@austere fjord Again, what's the threat model here? Why would you have all of this to begin with?

austere fjord
#

if done properly

warped hemlock
#

Complete privacy

#

jk

austere fjord
#

anoninimity and also ISP doesn't know you're using a VPN

warped hemlock
#

Im just messing around

austere fjord
#

haha

warped hemlock
#

Do you think its possible to obtain true privacy?

thorn obsidian
#

Well, if that's the case, you could easily SSH out to a VPS and then VPN from there

#

No need for all of this other stuff

austere fjord
#

Ok I consider SSH and VPN with equal points

warped hemlock
#

[message redacted]

Edit: I thought SSH was more secure VPNs. Please correct me if Im wrong

thorn obsidian
#

I don't have proof one way or the other on that

warped hemlock
#

Ok then I retract...

thorn obsidian
#

There's no need to delete your message.

austere fjord
#

VPNs could be faulty so I guess you're right

#

I'm still learning.

warped hemlock
#

I feel that unsubstantiated claims must be redacted to stop the spread of false information

thorn obsidian
#

@warped hemlock Having a discussion and breaking down misinformation is a good idea too 😄

#

@austere fjord So you say VPN. Is this something you paid for or is this something you've made yourself?

warped hemlock
#

Very well

thorn obsidian
#

I ask, because with Mullvad being in Sweden, the new law passed requires them to log.
NordVPN also recently had a leak as well. Lemme grab some links, one sec

austere fjord
#

yeah VPNs unreliable, that's why nested VPNs. but still SSH definitely more secure.

thorn obsidian
#

Why nested VPNs? Then you have multiple points of failure.

austere fjord
#

distribute insecurities

#

they don't fail at the same time

#

you can have multiple VPNs ready

#

as backups

warped hemlock
#

That sounds like Tor but bulkier and taxing

austere fjord
#

you can script it

#

easily

#

I'll probably make this program haha

thorn obsidian
#

Tor is great for onion sites, but it's not something to recommend for daily browsing.

austere fjord
#

as a project

#

call it inception

#

lolll

warped hemlock
#

lol I mean you can try

austere fjord
#

@thorn obsidian Did you watch all of Mr. Robot?

thorn obsidian
warped hemlock
#

I think its very appropriate

austere fjord
#

me too

#

We can keep it security based I guess. @warped hemlock you saw all of it too?

warped hemlock
#

Of course

austere fjord
#

hell yeah

#

who was your favorite character?

warped hemlock
#

How is that security based?

austere fjord
#

not sure was just curious.

thorn obsidian
#

trying to implement that level of "anonymity" will end up making you more traceable and you'll shoot yourself in the foot

austere fjord
#

not with S tunnel

#

which gives you TLS encryptino

#

makes you look like web traffic 🙂

#

you're right otherwise

thorn obsidian
#

I'm not sure you understand how TLS works

austere fjord
#

yeah I probably don't

thorn obsidian
#

your ISP will still notice you're only connecting to one server

#

which doesn't happen with regular web usage

austere fjord
#

I'll take a look into it though

#

wait explain that

thorn obsidian
#

With web traffic, you connect to each web server and have a separate TLS session for each one

austere fjord
#

the ISP only notices your traffic in transit what are you talking about.

thorn obsidian
#

with a tunnel, you're only connecting to one server

#

Your ISP can still see what servers you're connecting to dog

#

there's no way around that without tunneling it all through one server

austere fjord
#

they can see you're using a VPN yeah

#

but not if you're S tunneling dawg

thorn obsidian
#

which defeats your whoel point of "ISP doesn't know I'm using VPN"

#

@austere fjord How would S tunneling fix that?

#

That's not what S tunnel does or even aims to provide

austere fjord
#

hold up hold up

thorn obsidian
#

I'm very aware of what Stunnel is and what it does

austere fjord
#

what kind of traffic uses SSL??

#

web traffic

#

right?

thorn obsidian
#

you're missing the point

austere fjord
#

am i right?

#

or wrong?

thorn obsidian
#

it doesn't matter what encryption proto you use

austere fjord
#

so if the ISP sees SSL encryptin

#

what does it think it is?

#

VPN????

thorn obsidian
#

@austere fjord Do you know how SNI works?

#

That's NOT how ISPs identify VPNs bro

#

You're sending the domain name of the website you're wanting to go to in plaintext.

austere fjord
#

I'm still new I'm just "wrapping" my head around this lol

#

wait

thorn obsidian
#

Your ISP will see that you are tunneling data through one endpoint. It doesn't give a rats bum what the underlying data or method of encryption is

#

In fact unless your ISP performs deep packet inspection (which they don't for performance purposes unless you live in a country with internet censorship), they don't even know what encryption schema you're using

#

Stunnel is not even designed for anonymity

austere fjord
#

how does ISP identify encrypted vs. non enrypted data then?

thorn obsidian
#

Why would it do that?

austere fjord
#

hypothetically "incentivized" to

thorn obsidian
#

Then they would need to perform DPI, like I said

#

ISPs generally want the switching and routing of packets to be as fast as possible, which means eliminating any sort of overhead

#

I'm also interested in hearing what your plans for actually using Stunnel are, as it has to be implemented both on the client and the server side

austere fjord
#

ISPs generally want the switching and routing of packets to be as fast as possible, which means eliminating any sort of overhead
@thorn obsidian So why not pass it off as TLS or SSL encrypted data

thorn obsidian
#

?

#

Not sure what you're saying

austere fjord
#

I don't get what you're saying

thorn obsidian
#

@austere fjord They were referring to Deep Packet Inspection

austere fjord
#

@thorn obsidian first of all I have not written a thesis on Stunnels...yet

#

but when I have...i'll get that report over to ya

thorn obsidian
#

well, you have to keep in mind

austere fjord
#

but you have brought up a question for me

#

with Deep packet inspection what is it that gives the ISP a clue that it's Stunneled

thorn obsidian
#

stunnel was designed for applications which don't encrypt their communications by default (think legacy shit). It shims between the connections on both the client and the server side: any communication coming from application A first goes through stunnel shim A, which encrypts it and sends it to stunnel shim B, which in turn decrypts it and forwards it to application B

#

and vice versa

#

it does not do what you think it does at all

austere fjord
#

my question is this

#

if I wanted to put it past an ISP that I was using "web traffic" data but was actually using VPN, could it in laymen terms "sneak one by them"

#

if it's a no please explain

thorn obsidian
#
  1. it would have to be on port 443. Anything else would arise suspicion
  2. the IP you're connecting to has to reverse-resolve to an actual domain name. Anything else would arise suspicion
  3. to the ISP, it would still seem like you only ever visit one site ever and spend massive amounts of time/data communicating with that web server, which will arise suspicion
austere fjord
#
  1. 443 Https exactly
#
  1. hold on kind of agree
  2. not sure about this one
#

what do you mean visiting one site only...ISPs don't get to see under the encryption

#

you're talking about destination IP ok

thorn obsidian
#

your ISP will always know if you're using a VPN. There's simply no way around this. C&C engineers have been trying to "hide traffic in plain sight" for years and they're still not very good at it

#

Steve

#

I've been trying to tell this to you

#

TLS does not encrypt your entire traffic

#

You establish a TLS session with each website you visit separately

#

Your ISP still sees the IPs of the web servers you connect to regardless of whether TLS is present or not

austere fjord
#

yeah I can see that. still I think it's better than just having a VPN out in the open.

thorn obsidian
#

It's really not. Getting a server in a datacentre and country you trust and setting up Wireguard is far, far better

#

or, well, two.

austere fjord
#

yeah but we have think about time and resources, latency, experience, all of it together

#

you can't just go for the most secure route unless it's most efficient, time and resources

thorn obsidian
#

how is my solution not the most efficient? Latency will be far better than what you're suggesting, it takes less time to set up, and requires practically 0 experience as opposed to your suggestion

austere fjord
#

hmm

#

I'll have to look into this

#

how long have you been learning?

#

or in the field

thorn obsidian
#

well I got my BSc in ethical hacking & cybersec last year and have been working as a hacker / security expert since then

#

but i've been doing security as a hobby for nearly a decade now

austere fjord
#

that's awesome

#

wish I had been doing it on the side

#

I've been hitting it pretty hard though. I love it.

thorn obsidian
#

that's good to hear

austere fjord
#

I still think S tunneling is a good idea, even with it's disadvantages

#

lol

austere fjord
#

@thorn obsidian @thorn obsidian does the SSH > VPS or VPN method help against traffic correlation attacks?

#

and is multiplexing ever done properly?

stark mason
#

Sorry for ping but how you started doing hacking, where you learned it and how you practiced it? @thorn obsidian

warped hemlock
#

YouTube, Books, Try hack me, over the wire, hack the box (more for practicing)

stark mason
#

ohh i heard for hack the box

austere fjord
#

hello

thorn obsidian
#

@thorn obsidian @thorn obsidian does the SSH > VPS or VPN method help against traffic correlation attacks?
@austere fjord unless you control a fuckload of VPSs, no.

#

sorry for the ping, Scott

#

Sorry for ping but how you started doing hacking, where you learned it and how you practiced it? @thorn obsidian
@stark mason I started off with console hacking, interestingly enough. Free games was enough of a motivator for me when I was a kid

#

natural progression from there.

lusty flare
#

was looking particularly buff after the Wii phase

#

really hard to hack with motion controllers

stark mason
#

Oh free games maybe is enough motivation for me

#

But are you doing it only in python or in other languages

#

As well

austere fjord
#

@thorn obsidian ok thank you

#

Quick question about port forwarding, for example 127.0.0.1:55555 can you forward to a different numbered port on the remote host i.e. 44444 or does it go through port 55555 on the remote host first and then get to 44444. Probably a dumb question.

#

Thank you.

thorn obsidian
#

not too sure I understand your question @austere fjord, but you can "port forward" from any host/port to any host/port

#

there's nothing too special about port forwarding - it's just a rule: "any packets I receive on port X, forward to host Y port Z"

#

and vice versa

austere fjord
#

ok yes that answered my question

#

I thought there may be a process where ports have to match up

#

first

#

but port X can connect to port Y

#

@thorn obsidian was there anything you realized or learned that set you apart from other cybersecurity guys along the way?

lusty flare
#

port x can connect to port y, yes

#

PAT, port address translation.

#

loads of traffic on the internet while in transit is not the port you'd think it is

austere fjord
#

@lusty flare Thanks

thorn obsidian
#

@thorn obsidian was there anything you realized or learned that set you apart from other cybersecurity guys along the way?
@austere fjord sorry, somehow missed this message. I don't know if I'd say I'm somehow set apart from others in my field. Guess I just have a natural knack for it & it suits my "method of logic" so to speak

thorn obsidian
#

bahahaha

#

privesc to SYSTEM on any windows server since 2008R2

#

on demand, no reboot

lusty flare
#

wot

#

oooh, the thing microsoft said wasn't a thing

dense locust
#

in a set attack

#

hwo do u get the victim to get to that webpage for example

#

that u added to the victim's dns cache

round silo
#

/\ this sounds illegal

olive lark
#

unethical, surely

thorn obsidian
#

@ xx You're alright 👍

thorn obsidian
#

What should I use to generate salts for password hashes? I know that they should be different and long every time the user changes the password. But I'm not sure what to use to generate it. I'm using Bcrypt.generate_password_hash(f'{plaintext_pw}{salt}') This is what I'm thinking I will do once I figure out where the salt will come from.

#

Ideas?

lusty flare
#

@thorn obsidian

#

Argon2 is a key derivation function that was selected as the winner of the Password Hashing Competition in July 2015. It was designed by Alex Biryukov, Daniel Dinu, and Dmitry Khovratovich from the University of Luxembourg. The reference implementation of Argon2 is released un...

thorn obsidian
#

It looks like bcrypt already incorporates this salting... I just wonder where it gets the salt from. I'll look into that Argon2 as it sounds more modern.

austere fjord
#

I have a question guys.

#

I am confused.

#

so I have a portable router that I use at home to get connection for my laptop

#

and then I have my desktop computer that's hooked up to my main router

#

I did this just to compartmentalize my dekstop and laptop.

#

however I'm still able to SSH using the ip address that's not in the same subnet. I think it has to do with the portable router connecting to the main network.

#

how am I able to ping and SSH into my desktop kali linux with totally different subnetted IP

thorn obsidian
#

traceroute will tell you what it hops through to get to your destination IP

austere fjord
#

from my laptop

#

it's just going through the mini router default gateway

thorn obsidian
#

also, using different subnets doesn't protect against anything unless you combine it with VLANs or other sort of client isolation

austere fjord
#

No I like that it's happening

#

but it was a surprise to me

#

I know my mini router is hooking into the main router wifi network

thorn obsidian
#

well, your local PC goes "idunno how to route this, so I'm just sending this to the default gateway", which in turn goes "i know where this is" and everything works as expected

austere fjord
#

ok so I shut off SSH

#

on both sides

#

I can ping my desktop kali from the laptop, but cannot ping my laptop from desktop.

#

192.168.1.22 (desktop) > 10.10.10.2 (laptop)

#

why am I able to ping the desktop with my laptop?

warped hemlock
#

Just don't put your public ip

austere fjord
#

haha i know

#

destination port unreachable.

#

I think I figured it out. Implicit denial on firewall, there aren't any INPUT rules set, even for ICMP.

thorn obsidian
#

That way you aren't handling them yourself

thorn obsidian
#

Thanks. What made me think that I was missing steps was https://crackstation.net/hashing-security.htm
But it makes sense that they would incorporate the whole process into easier to use functions. I guess people used to have to do it manually. I remember reading that I should have a place for the salt in my database and I realized I didn't and thought I needed to upgrade my approach. I will at least switch from bcrypt to argon2 then

mental mirage
#
On July 10, 2011, an attacker with access to DigiNotar's systems issued a wildcard certificate for Google

What does generating a ssl certificate for google mean?
is it for *.google.com?
if so why is it a problem?
(i am talking about https://en.wikipedia.org/wiki/DigiNotar#Issuance_of_fraudulent_certificates)

DigiNotar was a Dutch certificate authority owned by VASCO Data Security International, Inc. On September 3, 2011, after it had become clear that a security breach had resulted in the fraudulent issuing of certificates, the Dutch government took over operational management of ...

zenith arch
#

What does generating a SSL certificate for Google mean?
SSL certificates are used to enable secure HTTP (HTTPS). You have to 'generate' the certificates, and you generate a certificate for a specific domain.

#

Also, there are different types of certs, but it's possible to generate a wildcard certificate, eg. *.example.com. So this will match against any subdomain of example.com.

mental mirage
#

But why is it a problem?
Isn't Google the only one who can use [something].google.com

zenith arch
#

Isn't Google the only one who can use [something].google.com
I would think so, hence why whoever could do it could end up spoofing Google.

mental mirage
#

so the iranian hackers had a signed cert for *.google.com ,
registered a website with a domain like example.google.com
and got mitm?

zenith arch
#

I believe something like that.

mental mirage
#

can anyone confirm?

mental mirage
#

furthermore: what stops me from using for example google certificate
on my website?

tall haven
#

Hmm I think nothing is stopping you but browsers will show it as not valid

#

They will say it doesn't match the domain

mental mirage
#

so i can copy google's cert to my site, but it won't match the domain right?

#

the dns name

tall haven
#

Well I'm not sure

#

This is a bit out of my league 😅

mental mirage
#

if what i said is true, what is this a problem?

On July 10, 2011, an attacker with access to DigiNotar's systems issued a wildcard certificate for Google

What does generating a ssl certificate for google mean?
is it for *.google.com?
if so why is it a problem?
(i am talking about https://en.wikipedia.org/wiki/DigiNotar#Issuance_of_fraudulent_certificates)

DigiNotar was a Dutch certificate authority owned by VASCO Data Security International, Inc. On September 3, 2011, after it had become clear that a security breach had resulted in the fraudulent issuing of certificates, the Dutch government took over operational management of ...

#

im so confused

tall haven
#

Can you even use it without the private key?

mental mirage
#

im not sure...

tall haven
#

You and me both

#

I'd be interested to know

mental mirage
#

ill try researching again

#

Your web browser comes installed with the public keys of all of the major certificate authorities. It uses this public key to verify that the web server's certificate was indeed signed by the trusted certificate authority.
but how??

#

how does it verify

#

what does verifying mean really

#

i get that the browsers have public key of real CA

#

but what does "signing with a private key" mean,
and how can the public key confirm it?

mental mirage
#

lol its 2:30 am so im going to sleep. I recommend you and everyone have a look at it its fantastic

thorn obsidian
#

the way asymmetric encryption works i think

#

is that if you sign something with your private key, the signature can be verified by someone with the public key(pre installed in browser)

#

so something being signed proves that the person signing it has access to the private keys and you can assume that they are who they say they are

#

so i think when the certiifcate authority got hacked and then the hackers issued * ssl certificates, the hackers merely used diginotars private key to sign their own certificates for google

#

so that they could perform a MITM against google and the victim wouldnt know because their browser say that certificate as valid because it the key it was signed with corresponded with the public key of the CA

#

i think that is what you were asking

thorn obsidian
#

Can anyone explain what's going on here?

>>> from random import randint, choice
>>> from string import ascii_letters
>>> from argon2 import PasswordHasher
>>> pw = PasswordHasher()
>>> for i in range(10):
...     hash = pw.hash("".join(choice(ascii_letters) for x in range(randint(4,9))))
...     print(len(hash), " - ", hash)
... 
77  -  $argon2id$v=19$m=102400,t=2,p=8$szQqiKIHAGKew8fMBNfvUA$/MJ3SHaaBv9QeE48pzMQQA
77  -  $argon2id$v=19$m=102400,t=2,p=8$eeFsUYPNmevfbdptMEngKg$oc9RErb2nvFMCiNLjyD6yg
77  -  $argon2id$v=19$m=102400,t=2,p=8$Q5vLi5Ytr1l1tTgPfw4qeA$Sql1qy9hS6IrkqGVCCAohQ
77  -  $argon2id$v=19$m=102400,t=2,p=8$3Gzdep2JWBC9RDGB47w13w$+Jtu8G6xofXjKBA/HR9F8w
77  -  $argon2id$v=19$m=102400,t=2,p=8$9DpoUQ6kqNB04QibPY8Gig$DJ38Ab3x0txBiwgqpR3LTA
77  -  $argon2id$v=19$m=102400,t=2,p=8$u5dtVMeiaf+FIxbr1nDsHA$Q92rwkezcCJCI3RaHfOK8g
77  -  $argon2id$v=19$m=102400,t=2,p=8$WM6yQbF9FOXjcY+cxxZzsA$OEGZ9PiEYrbHPxNKzXrh+g
77  -  $argon2id$v=19$m=102400,t=2,p=8$54bXHudY6/8j52nval6wUg$J1eUHj8hroiJK552UEpL9Q
77  -  $argon2id$v=19$m=102400,t=2,p=8$K1hQHikh6d491PKxHrP37A$qpS5LX6Opek1QzPnhMh8Cw
77  -  $argon2id$v=19$m=102400,t=2,p=8$51TjtMSuNNz0+AgJ+K2JwA$sazyAcv8gBkohl7rX9BQXA
#

What are all those values that seem to be the same?

sage summit
#

https://en.wikipedia.org/wiki/Argon2 looks like the version (v), memory (m), iterations (t), and parallelism (p) for the algorithm

Argon2 is a key derivation function that was selected as the winner of the Password Hashing Competition in July 2015. It was designed by Alex Biryukov, Daniel Dinu, and Dmitry Khovratovich from the University of Luxembourg. The reference implementation of Argon2 is released un...

thorn obsidian
#

Why would they store that info in the hash?

thorn obsidian
#

But why is it a problem?
Isn't Google the only one who can use [something].google.com
@mental mirage It's mostly a MITM concern. Attackers replace Google's cert with their own (for which they have the private keys, meaning they can decrypt or modify data) in transit, and browsers will happily accept it as it is signed by a trusted CA (DigiNotar in this case)

#

so i can copy google's cert to my site, but it won't match the domain right?
@mental mirage That, and the fact that you lack Google cert's private keys, meaning that you can't decrypt any data sent to you

#

I don't think you can even initialise a session without the private key since TLS v1.2 iirc

mental mirage
#

@thorn obsidian
just to clarify,
the attacker has a cert signed for *.google.com,
and the attacker also has a signed cert for himself, say bad.website.com

So when a victim trying to connect to maps.google.com what does the attacker do?

thorn obsidian
#

the attacker does not need a cert for himself other than the google wildcard cert

#

when a victim connects to maps.google.com through a piece of equiment that the attacker controls (your classic MITM scenario), the attacker can then create the TLS session with the victim, so the attacker can decrypt data and pass it on to the real maps.google.com (or vice versa), or serve their own maps.google.com (such as a "Sign into your Google account to use Maps" page)

#

and the user would have no way of knowing

#

you could do this with a certificate regardless, but if it's not signed by a trusted CA (such as DigiNotar), the victim's browser would give a red error page and perhaps not even let the user proceed

mental mirage
#

so the attacker generated a certificate for maps.google.com but signed for their public key and signed by DigiNotar?

#

i think i got it

#

so the hacker's problem is that he can use google's cert any time, but it won't have
the public key of the hacker. right?

#

so when DIgiNotar generated a certificate for the hackers,
They generated it for example for maps.google.com but for the attacker's set of public and private keys

So now a victim tries to access maps.google.com, an attacker creates a ssl
session with the victim, and a seperate session with real maps.google.com,

He gives the victim his certificate and his set of public/private keys,
and forwards messages between the real maps.google.com and the victim,
but decrypts and encrypts them in the way?

thorn obsidian
#

pretty much yeah

austere fjord
#

Is this DNS MITM?

mental mirage
#

not necessarily

#

well kinda

#

the attacker can just sit in between and decrypt the data, and the victim goes to
maps.google.com, but attacker decrypt then encrypts it half-way

thorn obsidian
#

it doesn't require DNS MITM

#

DNS just tells that [domain] resolves to [ip]. Even if the IP legitimately belongs to a Google server, the attacker can reroute the traffic regardless

#

DNS MITM would be an alternative - if the attacker is not in control of the network flow, it can use a highjacked DNS to point to their own IP, but this is harder to achieve in practice

thorn obsidian
#

But it was considered complicated, so was scrapped.

thorn obsidian
#

not necessarily complicated, but it had issues due to its base design

midnight delta
#

Hey all, i did a mistake. I send code of discord bot that was my token there. I will have a problem now? What can i do in this case

olive lark
#

deactivate the token ASAP

#

I don't know how but I assume it's easy

midnight delta
#

ok i will find it

#

i think with regenerate token is fine

#

i didn't see something with deactivate

olive lark
#

"regenerate" sounds fine

#

they must have a FAQ on "what do I do if my token is exposed"

cold fossil
#

Regenerate is the thing you need

#

It will deactivate the old key and generate a new one

midnight delta
#

Thanks!

upper plover
#

hey, I'm trying to track malware using COVID as a vector, (EG, fake zoom/skype apps, spearphishing "free COVID test", "Work from home during COVID")
Does anyone know any news sources/communities that would help?

native pier
#

has anyone read Black Hat Python?

#

can anyone give me a review of it?

leaden blaze
#

I haven't read it, but I've heard a lot of good things about it. I do think it's using Python 2, though, and you should be aware of that.

native pier
#

oh thats good, Thank you!

thorn obsidian
#

@native pier BHP was good at the time, but rather dated now

#

apart from python2, some of the techniques used there have been replaced with more modern ones

native pier
#

@thorn obsidian so can you recommend a new book?

thorn obsidian
#

I'm not really a book guy, sorry

native pier
#

@thorn obsidian np, thanks!

glossy basalt
#

Any recommendations for hashing strings in Python?

#

using it for FIM so the easiest implementation is probably secure enough

olive lark
#

I'd see if cryptography has the sort of hash algorithm you want

glossy basalt
#

there is no #cryptography channel

thorn obsidian
#

so um

#

the cryptography

olive lark
glossy basalt
#

oooh I see what you mean