#programming
1 messages · Page 8 of 1
what do you mean by myspace vibe?
its the font and the border
or borders*
have a look here
browse some sites
Is good
find the major differences
okay
sorry, had to step away for a second
About to have to get ready for work too lol
@clear lodge Any idea on how to make my scroll bar look better lol?
Also, yes. I am using sourced content for the scroll bar lmfao
/* Customize the scroll bar track */
.simplebar-track {
background-color: #000000;
border-radius: 25px;
}
/* Customize the scroll bar thumb */
.simplebar-scrollbar:before {
background-color: #292828;
border-radius: 25px;
}
/* Customize the scroll bar thumb on hover */
.simplebar-scrollbar:hover:before {
background-color: #555;
}
/* Add a smooth transition effect */
.simplebar-scrollbar {
transition: background-color 0.3s;
}
This doesnt seem to change anything within the scoll bar class
/* width */
::-webkit-scrollbar {
width: 10px;
}
/* track */
::-webkit-scrollbar-track {
background-color: green;
}
/* handle */
::-webkit-scrollbar-thumb {
background-color: blue;
}
::-webkit-scrollbar-thumb:hover {
background-color: red;
}
replace the $vars with whatever you want
no, just copy this whole block
oh yeah remove that
okay
and change the var to whatever, and just place that class withing the same div I have for my scroll bar?
no you dont have to do that, the ::-webkit-foo already selects the scrollbar
show code?
.scroll-bar::-webkit-scrollbar {
width: 100px;
}
/* track */
.scroll-bar::-webkit-scrollbar-track {
background-color: green;
}
/* handle */
.scroll-bar::-webkit-scrollbar-thumb {
background-color: blue;
}
.scroll-bar::-webkit-scrollbar-thumb:hover {
background-color: red;
}```
ahh
beautiful
lmfao
I try to learn as much as I can before I post live lol
Thank you!
Looks so much better now lol
yeah was thinking that, along with possibly making it shorter, but I'm not sure what id have to add to do that
the height of the white line will decrease as your page becomes 'taller'
its automatic
ahh
you can probably add a fixed height but you may not want to do that, as this is an indication as to how much space there would be to scroll
yeah
I get what youre saying
Here I'm going to make this live so you can see it
there its live
yeah looks good 😄
Alright, I've invested almost too much time this morning on this lol
I have to get ready for work lol
glhf!
Thank you for your help!
I will definetly be coming to you later if I have any issues, also if you have any ideas for the site feel free to dm me lol
i know i know
Its just a place holder lol
😉
that only works on chrome, yes?
how to master a programming language
Program in it
The support is pretty good, all major browers have partial support for it ( excl ios but whatever you know )! There are just some things like auto dark and light theme detections you cant use on it or something like that? I never looked into that
Alright, after a long day at work I think I am ready to continue my programming journey
Guess I'll work on getting rid of those <br> tags lol @clear lodge
does anyone have a good tutorial information in explaining how to code ocr and export the desire info into excel
@clear lodge you there?
or @surreal bronze or @vestal carbon or @brazen eagle
Question for you, do you think that adding a logo to my home page would be too much, or no?
I think it would take away from the astetic
imo
no, adding your branding clearly is a good choice. Idk what your logo looks like
I dont have one yet lmfao
I'm just saying lol
top left in the nav is a good / usual place
if you prefer to display it in a more subtle way
So put it within the navbar to the right of "Contact?"
I would get rid of that border around nav and put your logo to the far left
usually my nav consists of: branding ( logo ) - nav links on desktop, or a hamburger that expands into a menu on small devices
see how most platforms do it
Yeah
with some variation in exact placement but you get the idea
yep. Or branding - nav links in center - something else to the right ( a contact button for example )
Zealand*
I'm a ex-military gotta have them ⭐eyes⭐ lmfao
one thing you have to take into account is that your nav links will not all fit on a mobile screen
if you want to use it in your nav, youre going to have limited space. So consider that
not too many details in your logo - it wont look good if your space is 50x50 pixels or whatever
Okay
personally I think the razer logo looks terrible by itself , but even more so when its small like this
it this were my site, I would opt to not have this small logo in the nav but implement it somewhere bigger
nasa has a complex logo but see how they opted to implement it much larger. Works way better imo
I get where youre going
Working on updating the nav bar now, then when I'm done work. I'll probably start working on the Logo/Brand and see what it looks like
branding encompasses all of the websites "vibe" /design and how you present yourself / your services etc. Its a big and important thing to think about your strategy for this 🙂 the logo may be one of the last things to create, because if you're going to iterate through styles on your site, you might find the logo you make now wont fit well with any branding you decide on later. You could use a placeholder for the logo for now
Hey, anyone understand nodejs, and react?
trying to run this, and it keeps giving me error messages
Note: This is all strictly from the nodejs library
please read line 5 of the errors
onedrive can probably be causing errors, can you try it outside of onedrive?
Thats the thing, I cant seem to get to my desktop without running through OneDrive
(Installed via command line)
Where do you use OneDrive?
Personal computer, or a school/college?
you're missing a folder
cd plaig
Further proof that computers are stupid and could never take over the world
Jumping into react already 😅 good luck!
Any idea how to make winPEAS listen to me and not output colors ?
I m trying to create my own parser for it since one provided in it's git repo doesn't work for one reason or another but dealing with color-encoding noise is nerve-wracking.
Where are you using it?
Powershell?
# out foreground and background colour.
winpeas.exe notcolor apparently?
See if it works, I just did some googlin
I was gonna suggest editing out the python colorama or termcolor
It's Python?
mate doesn't work I've tried it and forgot copying it over from another channel
.exe and .bat both output encoding noise with their respective nocolor enabled
Isn't there a python script?
hol up I might know what's fu- fricking with it however I doubt it's gonna work
doesn't work how I would like it to and for some reason the json it outputs doesn't contain all the neccesary data
nope still doesn't work even when the env var is outta play
seems like there is a pattern to this beforementioned noise. I will just regex it and then process it how I wish.
However the fact that the notcolor option works this way is.......
it's meh
Also one other question. Any idea how supply two or more parameters to the suggested in-memory injection commands mentioned in the README.md?
I m rather asking somebody who's done it than "what ifs" I've already tried plethora ways and they didn't work.
Edit: yep sed is the way. Who needs tools to work as intended when you can fix them ;p
I'm most definitely NOT insulting winPEAS creator. Working or not, PEAS is one hell of useful software
I have an interesting question. lets say that I created a basic python C2 server and the machine that executes the payload which is a reverse TCP and connects to my C2. Now I want the client program to host a proxy server so on my local machine that is running the listener starts a local proxy server that I can for ex add to my proxychains.conf file so any traffic I use for proxychains gets proxied to the client and out from its side or internet if you will how will that be made in python the proxy part?
Hey guys a few things. Firstly, I just recently bough a Flipper Zero ( Currently being shipped to my house ), I have also had a Raspberry Pi computer that I bought awhile back that is just sitting around in a box currently.
I was wondering if you guys could think of any projects I could start that includes these products. I understand that the Flipper Zero allows for scripts to be written and saved to the MicroSD card but what about the Raspberry Pi Computer? Anything I could use that for?
one project i did with the raspberry pi was to make a website where i can control my LED strips. this also involved some minor electronics stuff tho. i then made multiple modes like color cycle, static, etc. was really fun cuz initially these LED strips could only be used with predefined colors on a shitty remote.
speaking of remote, cuz flipper has wifi capabilities you could make a script for it, to control the LEDs. then you dont need to open the website (or what ever you wanna do to control them)
i can search the tutorial that i used if you want (for the electronics setup and testing with PiGPIO).
alright so I'm in an instance of mysql. I'm running this set of commands: SELECT * FROM users WHERE username = 'admin'
This gives me what's in the screenshot. My question is, is there a way to go further into the database and into that admin. Or is this about as far as it goes? Like is 'admin' just a part of the table and not something that I can look into, the way I looked into 'users'?
and when I use SELECT * FROM admin I don't get anything, so I'm assuming that's what's going on
nvm I figured it out
something that was staring me in the face haha
admin is the value of the field. users is the name of the table
any Tailwind users in here? I'd love to hear your experiences / opinions on Tailwind vs modular CSS / SMACCS
Tailwind seems to be a way for people to use CSS without knowing CSS 😉
yeah that is my thought so far. Written by CSS haters, for CSS haters. I'm doing a project with it now because apparently clients love it? I'm trying really hard to stay open minded and see what all the fuss is about but I can't exactly see a real benefit yet... but according to their own words:
Now I know what you're thinking, "this is an atrocity, what a horrible mess!" and you're right, it's kind of ugly. In fact it's just about impossible to think this is a good idea the first time you see it — you have to actually try it.
they have successfully baited me into trying it at least
but maybe its just Now I know what you're thinking, "this is an atrocity, what a horrible mess!" and you're right, full stop 😂
but Ill do it some more. Maybe its just a 'change is scary and stupid' knee jerk response 🥲
Well written
hey guys
any one can help me?
Traceback (most recent call last):
File "---/server.py", line 5, in <module>
conn.bind(ip, 666)
TypeError: socket.bind() takes exactly one argument (2 given)
i try to execult my server in python but...
Have you researched the usage for bind()?
tuple cast
Yes, because thats the address format
okok, thanks bro
I mean it's a way to abstract and modularize the CSS, and it makes it very explicit what style an element will have. It's also useful for certain frameworks where CSS is a bit harder to include, like MDX and similar
what if you have some JS that uses the classname 🤔
I'm trying to get into it, I like that you easily can override presets, and I do kind of enjoy the @apply structure. But I'm so bad at visuals and structure so I'm a bad example 😁
But in the end, it's just CSS with extra steps, as always!
And I hate using "inline classes", would rather use actual inline style in that case...
IMO if this is the white paper abstract, you can stop there. Usually when someone leads with "hold on, this only sounds like hot garbage!" it's not a good sign
I guess if you're really against learning css syntax and just want to style a simple website, it works well, since you can go "text-red-200" and get a pink text... But then you need to learn that syntax instead. And I think I'd prefer using CSS variables instead in most cases...
Ive heard some people say that but I dont really get that argument though. Im defenitely biased so maybe thats the problem, but I dont see how learning tailwinds 6838384848 classes ( and that color palette system....? ) is easier than learning what I feel are already very intuitive CSS properties.
Why is 'text-red-200' easier than 'color: actualcolor' 🤔
Ill say I guess I can see how TW is somewhat convenient when you have a nice collection of reusable components. But I still find myself constantly wanting to going back to classic implementations
@apply is just SCSS though, which is imo the supreme superior way to do styles :p haha
Some valid points. Maintaining consistency across a large project is easier to mess up though I think? We'll see
In what manner do you mean exactly?
its certainly explicit yeah........ 😂 ( poking fun, if anyone thinks they should have this amount of styles on a checkbox they are insane in the first place, no matter the stack )
is that real?
I think I just asked a dumb question, because that class. there's no way
Just restarted Javascript today. Excited. Planning on sticking with it for a good while this time around
these are a multitude of classes, you can definitely do it, I think it's real, but..
https://github.com/kkuchta/css-only-chat
someone also made this, so.. ya know 😂
oh lmao they use the same gif in the readme
glhf 😄
what are you planning to use? A particular framework you have in mind or just doing some vanilla?
Haha yea just vanilla for now. Just get my feet wet and understand the concepts of programming better. I figure it would also help with stuff like SSRF and other web hacking stuff
I'm using this lol
Nothing too fancy
Also I do like Web Development as a hobby, so
Bro what is that cover
I think its great to get a really good grasp on vanilla before using frameworks
a mistake to jump into a framework before that imho
how old is that book?
web moves fast, haha
You can say that again, I think I have a web development book back from 2016-17
heheh
I suppose a lot of the basic knowledge is transferable even if its maybe outdated. Some tags we don't really use anymore for example, but it doesn't matter too much to understand how HTML works
the DOM remains the DOM no matter what 😄
Lol it's from like 2011
I know quite a bit about HTML5 and CSS3 already, so it's really for the Javascript
oof thats p old though hahaha
And yea I don't think a lot of it is much different. A lot of the same semantics as now a days
Why did I think HTML5 was brand new
HTML5 is still HTML5 though. What changes is the dynamic page generation frameworks, not the underlying HTML. Learning HTML first is very bottom-up
yeah thats what I said 😉
I'm just now learning about the DOM. I've heard of it and never knew it was simply how objects are structured. So simple
It's fun
Underlying may be the wrong word - HTML5 is still being sent to the browser to render, the framework is usually kicking the HTML to the client based on templates, which can get horrifically (and stupidly) complicated (RE: ASP.NET 2.0)
especially when you get started with DOM manipulation in vanilla JS that will be useful Carlitoes
you encounter DOM manipulation a lot more in vanilla than when you use frameworks
Remember that DOM manipulation is typically done client side to alter presentation - it doesn't actually change anything on the server
Niiiice. Lots to learn. I'm ready
My advice would be start with vanilla, and only introduce a framework once it starts getting too complex
I agree, I started with frameworks way too early, and everything looked like magic (spoiler: it's really not)
Yeah it's not magic, just upsetting levels of quackery
For beginngers to coding, I agree - once someone has some experience with STL or something like boost, IMO they are already mature enough to understand how to use a framework without everything going to shit
I mean boost is mostly being integrated into the standard as well 😉
That's true. Can't wait for the Networking TS to finally be fully integrated
I've dabbled in Bootstrap but that's about it. I've always enjoyed the idea of creating my pages from scratch tho. But maybe I'll be interested in frameworks once I understand them more
You could try something like React and experience the difference in building a site / app vanilla vs react(ive). You dont have to do any manual DOM manipulation anymore which is nice but that can feel weird at first. You'll have to focus more on state, passing props around etc. Imo its a pretty different experience. If youre not used ( yet ) to creating reusable components it can be a little weird at first. You could try native web components ( is still vanilla ) before moving to React and co to bridge that a little bit without having to learn all framework specific shennanigans
Which are useful shennanigans* btw. But its a lot of extra you need to learn
Yea, see, I have an interest in learning all of that but it probably won't happen any time soon. Like I said, web dev is more of a hobby for me and the main reason I wanna become proficient in JS is to better understand programming concepts and to possibly give me an edge in web hacking
I don't plan on putting much more effort into web dev other than this book I'm studying about Javascript, since the main premise of the book is web development
So while I do enjoy web dev, I'm much more interested in knowing enough about it as a way to be able to break things haha
Yeah that makes sense 🙂
Hey ,
Is there anyone who has passed the scrum dev certification?
Just ask? I'm sure someone can help:)
def main():
banner = '''
▒███████▒ ▒█████ ███▄ ▄███▓ ▄▄▄▄ ██▓▓█████
▒ ▒ ▒ ▄▀░▒██▒ ██▒▓██▒▀█▀ ██▒▓█████▄ ▓██▒▓█ ▀
░ ▒ ▄▀▒░ ▒██░ ██▒▓██ ▓██░▒██▒ ▄██▒██▒▒███
▄▀▒ ░▒██ ██░▒██ ▒██ ▒██░█▀ ░██░▒▓█ ▄
▒███████▒░ ████▓▒░▒██▒ ░██▒░▓█ ▀█▓░██░░▒████▒
░▒▒ ▓░▒░▒░ ▒░▒░▒░ ░ ▒░ ░ ░░▒▓███▀▒░▓ ░░ ▒░ ░
░░▒ ▒ ░ ▒ ░ ▒ ▒░ ░ ░ ░▒░▒ ░ ▒ ░ ░ ░ ░
░ ░ ░ ░ ░░ ░ ░ ▒ ░ ░ ░ ░ ▒ ░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░
░ ░
'''
print(Anime.Fade(
text=banner,
color=Colors.green_to_yellow,
mode=1,
interval=0.100,
enter=True,
hide_cursor=True
))
time.sleep(10)
main()```
```md
Traceback (most recent call last):
File "c:\Users\Not7e\Desktop\main.py", line 104, in <module>
main()
File "c:\Users\Not7e\Desktop\main.py", line 34, in main
print(Anime.Fade(
File "C:\Users\Not7e\AppData\Local\Programs\Python\Python310\lib\site-packages\pystyle\__init__.py", line 561, in Fade
Anime._anime(text, color, mode, interval)
File "C:\Users\Not7e\AppData\Local\Programs\Python\Python310\lib\site-packages\pystyle\__init__.py", line 667, in _anime
_stdout.write(mode(color, text))
TypeError: 'int' object is not callable```
How do I fix this
Read the error and act accordingly
Ive tried
This thing is so confusing I did it like this b4 idk why it's not working now....
You're probably sending an int as a parameter when you should send a function
Ive tried that
@lilac holly Have you read what that function's option takes?
Firstly, you're converting an integer to an integer
Secondly, it says the object of "int" is not callable
Remove int(1) and just replace it with 1
Did all that still no
It say's mode take "any" idk what that means
properly debug your code see what it’s doing to determine roughly the issue, go to the line mentioned in the error or where you believe the issue may lie. probably the best thing to do as no one can see the module used
in detail
Anyone know how I’d automate commands after getting a reverse shell?
if you are using python you could write something like that
and then use sock.send() to send commands
this would probably be one of the more simple methods
Use a tool like pwnkit or metasploit
how did you make that banner?
incredible tool, thanks
Gave +1 Rep to @hazy loom
W banner!!!
why can't I favourite this channel
Hey, maybe someone in here knows what might be up with this. Someone using a go tool i wrote reported they get the following error during a Get Request my tool makes:
tls: failed to verify certificate: x509: certificate signed by unknown authority
They also reported they use PopOS. Could some security feature (i imagine something like application containers or something) cause this issue? Golang should use the system cert store by default, so if they do not have any problems in the browser with the cert, in theory the application should also not have a problem.
This is usually caused by a self signed certificate. The browser may be using a different cert store for validation than your application is.
Could it also be an out of date cert store? They said it was PopOS 20.4 and i'm not familiar when/how debian/ubuntu based systems update their cert store.
i assumed some kind of proxy might have added some kind of self signed cert, too, but they said they do not have any proxy set up on their system.
That should still be supported. If you can determine which cert is failing that will help you troubleshoot as well.
If PopOS was using a reverse proxy, you'd just point your package manager to use that as a source, and it would auto-resolve to the correct load balanced server.
Had a question about some coding. I am creating for the first time a discord bot that will track player inactivity and send one warning after so many days and then after another set of day a final warning and kick.
now when I test it in replit or visual studio i get this:
check_inactivity.start()
File "/home/runner/Discord-Activity-Bot/venv/lib/python3.10/site-packages/discord/ext/tasks/__init__.py", line 398, in start
self._task = asyncio.create_task(self._loop(*args, **kwargs))
File "/nix/store/hd4cc9rh83j291r5539hkf6qd8lgiikb-python3-3.10.8/lib/python3.10/asyncio/tasks.py", line 336, in create_task
loop = events.get_running_loop()
RuntimeError: no running event loop```
Now i took a look at my code and the sub routine and the run code for the sub routine where both correct but yest this tells me that it was not
Did you start the event loop before running your bot ? If yes, then personally I don't see from where the error can be comming
yeah the event loop is on line 23 and the bot.run is on line 72
check_inactivity.start()
bot.run(TOKEN)```
This is line 70 though 72
and the intital loop is
async def check_inactivity():
for guild in bot.guilds:
inactive_days_1 = guild.get_member(guild.owner_id).activity_days_1
inactive_days_2 = guild.get_member(guild.owner_id).activity_days_2```
As last possibility from my view, maybe there is a problem in the import, but if it was the case, I think the error message would be different.. Can you show your import pls ?
Full code please
I have figured out the mess in my code. Because I am learning how to code bots there is one question that you all may be able to answer. How do i allow for user commands to run bot commands
code:
async def on_message(message): #establishes the messaging and time the code to the parameters set
if not message.author.bot:
last_seen[message.author.id] = datetime.now()
await bot.process_commands(message)
@bot.command()
@commands.has_permissions(administrator=True)
async def set_activity_days(ctx, inactive_days_1: int, inactive_days_2: int): #Commands to set the inactive day for the 1st and 2nd days
"""Set the number of inactive days for warning and kick"""
member = ctx.guild.get_member(ctx.guild.owner_id)
member.activity_days_1 = inactive_days_1
member.activity_days_2 = inactive_days_2
await ctx.send("Activity days set successfully!")
@bot.command()
@commands.has_permissions(administrator=True)
async def set_extended_absence(ctx, member: discord.Member, extended_absence: bool):
"""Set the extended absence status for a member"""
member.activity_extended_absence = extended_absence
await ctx.send(f"Extended absence status for {member.display_name} updated successfully!")```
How do i allow for user commands to run bot commands
Just remove the has_permissions wrapper
okay, will do. Like I said I am completly new at this and learning as well as taking notes. but just to make sure the command to access inactive days and would be something like this "!inactive_days_1, inactive_days2, and extended_absence as the user bot commands to configure the code? like I said I am just learning and wanted some practice so forgive me for sounding like a complete newbie
it would be !set_activity_days
okay thank you I will try that
Who knows Java programming?
You will get a better answer to your question if you just ask your question
Trying to automate metasploit. I’m using a script that generates a resource file and runs msf with the resource file. However, im now stuck at the meterpreter session. How do I issue commands to the meterpreter as it doesn’t receive commands from the resource file?
I am having trouble extracting substring from a string with delimiter using sed, below is the origional string format:
This is/a testing string/with bracket (and|vertical slash)/filename (100).extension
Below are the cmd i use to extract the last two items:
file_name=`echo $str | rev | cut -d '/' -f 1 | rev` last_folder=`echo $str | rev | cut -d '/' -f 2 | rev`
Below is the cmd I use to remove the file name from the string:
site=`echo $str | sed 's#'"\b$file_name\b"#""'#gi'` | sed 's#'"/"*'$##'
But when I try to use the same format to remove the /with bracket (and|vertical slash) part, it isn't removed.
i
seperate it in smaller steps to figure out what went wrong.
Me
thanks for the website
Gave +1 Rep to @hazy loom
hey im learning python over the summer, and im trying to make this rock paper scissor game. but when input my option, nothing happens and the exit code is 0
`
import random
choices = ["rock", "paper", "scissors"]
computer = random.choices(choices)
seperator = ","
player = input("Rock, Paper or Scissors?: ")
if player not in choices:
player = input("Rock, Paper or Scissors?: ").lower()
if player == computer:
print("you chose: ",player)
print("computer chose: ",seperator.join(computer))
print("It's a draw!")
elif player == "rock":
if computer == "paper":
print("you chose: ", player)
print("computer chose: ", seperator.join(computer))
print("You lost!")
elif player == "paper":
if computer == "scissors":
print("you chose: ", player)
print("computer chose: ", seperator.join(computer))
print("You lost!")
elif player == "scissors":
if computer == "rock":
print("you chose: ", player)
print("computer chose: ", seperator.join(computer))
print("You lost!")
elif player == "rock":
if computer == "scissors":
print("you chose: ", player)
print("computer chose: ", seperator.join(computer))
print("You won!")
elif player == "paper":
if computer == "rock":
print("you chose: ", player)
print("computer chose: ", seperator.join(computer))
print("You won!")
elif player == "scissors":
if computer == "paper":
print("you chose: ", player)
print("computer chose: ", seperator.join(computer))
print("You won!")
`
I'm not a python dev so Im just guessing a bit here ( not too familiar with python ). I think you need random.choice(choices) perhaps instead of choices ( just reading the docs, that return a list whereas .choice() returns 1 element
also I think you're missing a .lower() in this top line:
player = input("Rock, Paper or Scissors?: ")
if player not in choices:
player = input("Rock, Paper or Scissors?: ").lower()
if you input Rock now, it would fail I think because the input isnt lowercased
but . I think thats a minor side issue for now
also that the player can only make an invalid choice one 🙂
you have a lot of repeating code that can stand a refactoring
the prints for what you and the computer chose only need to be done once
you'll probably want to create a function to determine win/loss, then report the results of that
ahh ty guyss
thank u
Gave +1 Rep to @brazen eagle
thank u
If you want to get your coding questions answered stop posting screenshots of your code, and learn how to post your code the right way.
#shorts
sigh @magic falcon
Do you really think that we wouldn't notice you just asked in a different channel? You were already told that we can't help you with class projects.
Then talk to your instructor
If you don't understand what you need to do for the project, the instructor is your best source of help.
In many schools, asking for help from the internet like this is considered cheating.
University is a type of school.
Sure
I would advise you to stop asking here, and go ask the instructor.
https://discordapp.com/channels/521382216299839518/707992725646999553/1118582985235644478
I guess finding an efficient algorithm would be based on what you consider "efficient", so the most optimal is the most efficient one right? Because there can be nothing better, so whatever you compare it to will be less efficent then it
I also said it's my bad I can't understand this
N^N is never considered reasonable, in terms of time cost
and, it's a reference to the verification of the solution. So, a hamiltonian graph problem may have an optimal solution that was found quickly by chance. But verification of the solution requires a complete state space exploration
In computational complexity theory, a problem is NP-complete when:
It is a decision problem, meaning that for any input to the problem, the output is either "yes" or "no".
When the answer is "yes", this can be demonstrated through the existence of a short (polynomial length) solution.
The correctness of each solution can be verified quickly (na...
interesting, say you found an algorithm for it - can you ever actully prove that it is the most optimal without knowing if a more optimal algorithm exist?
and how can we know for sure if a more optimal algorithm exists
it depends on how you can categorize the problem
is it reducable to another known problem type? What is the asymptotic analysis of the algorithm?
As a comparison, you can look at the naive matrix multiplication problem compared to strassen's algorithm
If you had a problem that you could decompose into 2 smaller problems, and one of thoes problems was another known type with O(N^2) - then am I right in saying the overall problem could not be more efficent than O(N^2)
yes, worst case scenario - what's the time spent in each algorithm? what's the dominating part ofo the overall implementation? that will determine big-O
hi
how can I program a tool that finds subdomains using python
Regex
well first, what different ways of discovering subdomains are there?
checking sitemap
active scanning
Does anybody give advice for improving Python from beginner to the next level?
You can begin with little exercice like find a word in a table etc... and then do project (create a calculator with interface, create a file modificater etc...), You can ask ChatGPT to give you exercice/project of different level and then ask him to explain/show solution.
Which programming language should I start with to start ethical hacking journey?
Is programming languages are most used and why?
Can anyone pls help me?
Personally I think Python,Javascript and C/C++ is good; python for made/undesrtand some scipt, JS cause lot of web page are made with it, and C/++ to understand low level programming, understand how memory is managed etc...
for quick results python, when you want to dig deeper, id go for c and asm
IMO, if you are just beginning what language you start with doesn't really matter. Being a good programmer isn't really required to learn ethical hacking. What I would reocmmend is to learn networking first and branch out.
Unless you are already in a BS degree program, then it's a matter of supplementing your formal coursework with personal learning projects.
Thanks
Gave +1 Rep to @magic falcon
I get it......
Hm?
Then should I start learning networking as a beginner?
I red the article and I understood
There are a few different paths to learning security. Depending on what you want to do and where you want to go, networking is one of the most broadly applicable domains.
Then do you recommend having a besic knowledge of networking?
I personally would
Cisco 🙌
does coding require programming?? /joke
what’s that?
Testing indivual parts of source code
sounds like a question you can look up for yourself I think 🙂
we do a little test driven development
Is Html or Css strictly needed for Ethical hacking or pentesting??
Or just basic knowledge of it can be inportant?
Knowledge of scripting languages can be helpful but any over the other isn't strictly needed. The examples you mentioned are used for webpage/webapps and might not be so relevant when your target doesn't use any of those.
Thnx
Is there a way to just completely disable my lockscreen? So that when I boot the computer up it wont ask for a password/pin itll just start. For windows 10 / 11
I tried through the registry
kinda unrelated but the github homepage is kinda cool. I accidentally landed on it, one of those sites you use all the time but never seen the homepage 😂
the dsign is fancy but all the animations are a little annoying though
looks spiffy, little annoying to use
Not a programming question but a google search turned up this for me: https://support.microsoft.com/en-us/windows/go-passwordless-on-your-device-5035693d-8f87-c5d5-d16c-b2f75d37bb37
Learn how to go passwordless with Microsoft accounts on your device.
hello!
can i achieve the same thing in python3 as in python2?
seems like the new print function removes non printable characters
iirc set your strings to be bytes e.g. b"Hello world", and use sys
import sys;
sys.stdout.buffer.write(b"Hello world")
Good day to you 👋🏽 this job is my passion.
wow! thanks!
Gave +1 Rep to @upper otter
np
Hi talented people, curious here. Iv written client and server side reverse shell in python today. Can i use this on tryhackme?
If it helps you to get a flag from a room that prompts you to do so, then you should be fine. If you mean to ask if you can use this on any machine you encounter on the THM network the no
Only those you have permission to "attack"
yea just the current boxes, i dont want to get banned and thanks
Gave +1 Rep to @wraith latch
"alternative" paths within a room are still valid, AFAIK, the problem is created using these techniques against real world targets without legal protections
nice one. i would only try this if its in the scope otherwise i dont think about it
you might not get the correct flag using an alternative path due to how tasks can be constructed on the VM, I don't think it would get you site banned for using one.
@true pumice @sly breach Can we get a ruling on using an alterative path on a room task?
Complete the task how you want to.
As long as you get the correct answer and understand the theory, it's fine.
It is up to you how closely you follow a room, but if you constantly take alternative paths and ignore the room content, that's on you for not learning I'm afraid:(
It is important to note: the tryhackme rooms are not a playground for testing attacks that are not specified in the room you are completing. Please do not boot rooms to deploy malware, viruses, perform denial of service attacks or anything of the sort. This is against our terms.
Ok ill take that advice, thanks.
Gave +1 Rep to @true pumice
W
Why aren't you using an IDE?
why dont you use another IDE ( visual studio code ...)
You probably have a syntax error in your code, idk what php syntax is. Besides that you should check mysqli_query’s return value
Sorry we can't help you with school work, please ask your teacher - it's their job 🙂
idk they wont allow it
ah isee thanks for help
Gave +1 Rep to @upper otter
sokay
bro this server is made to help anyone
what do you mean
Please do not help with schoolwork or exams.
Do not ask for help with coursework or exams. Your first line of help with anything school related should be the instructor.
No, this server is made to support and engage with cybersecurity and specifically content on the THM labs. Asking for help with schoolwork is well beyond the scope of what this server is for.
ah isee sorry, btw i have fix that errors, bcz of typo
did you find a solution ?
nice
It's so you remember the syntax better and get used to work in non friendly environments, which is something necessary
you should know scripting basics
Ok can you send free resources to study from it
Check pinned messages in this channel
WoW 😮
I should study all of this amount i am study in university basics of java and oop and data structure , is it enough?
its never enough
OOP, data structures, etc. are useful even outside of java. applicable to other programming languages
You don't need to know all of it, research what the languages are used for and decide what to learn from there
yo guys!!!
i just made such a silly game!!
dont ya think?
theres the code to the game!
such a silly game
isnt it so cool!
Russian roulette is a funny concept but please put a disclaimer for code that can be malicious
kk yeah lol
💀 💀 💀
anyone with 2 braincells can look at that and see its malicious lmao
also btw juun,
There is some person out there who doesn't know anything, and WILL run it because they dont' know better.
rules say nothing abt malicious code 😉
lmao but abt malicious viruses
Rule 17.
not misleading whatsoever 💀 i literally said funni haha game so silly
its not like i sent it as executable
Definitionally, saying "haha its silly" is deceptive. Because it's not silly, it's a malicious snippet.
LMAo😭 😭 😭
Also rule 10
also, no dumbass
lmao
rules say no malicious FILES or VIRUSES
i sent a piece of code that deletes kernel32 if you get a question wrong lmao
its so simple that a non coder could read it and see its bad.
also juun said someone could be dumb enough to copy and paste it and run it...
but you need a python IDE to do that.
and if you have that, YOU WOULD BE ABLE TO READ IT LMAOOOO
so no, it was not deceptive whatsoever.
Alright chill out
just sayin🤷♂️
Did someone spike your cheerios with sugar or something
Last warning, stop trolling.
I’ll amend the rules to include posting malicious code.
You would be surprised with how many people run files without actually checking
Even if they have the IDE’s installed haha, welcome to Cyber Security
yeah it would be diffewrent if it was a file
oop didnt mean to reply to him
it would be entirely diff if it was a file
It woudl be exactly the same if it was a file.
It would be, but we also have to follow the terms of service written by Discord
Discord doesn’t allow the promotion or sharing of malicious code, following the terms of service stops our Discord from getting in trouble :)
oh yeah, I entirely get that.
it wouldnt... lol
also I haven't been trolling at all this entire time.
ive just been explaining that what i did was not against your rules.
all i did was share a silly piece of code which was basically computer russian roulette
We appreciate it — I hope you can see it from our point of view, especially as you’re not the first person to send code like this here and say it wasn’t against the rules (which is why the rules exist*) 🙂
We would appreciate it if you could refrain from sending anything malicious, I’ll look to updating the rules later tonight
ye sure ofc
Cool thanks
I appreciate you for understanding 😎
You're splitting hairs and trying to win a losing position on a technicality, but I'm going to stay out of this now, also, calling someone a dumbass does wonders for your argument.
On another note, CS50 is a wonderful CS course free from Harvard. I'm taking it right now and would recommend it to everyone.
Is that like cs100 for absolute beginners?
It's aimed at beginners but the problem sets can be quite difficult even for non-beginners
when should I learn programming for hacking?
Then send descriptions
Sooner than later
at least get some basic scripting down. you won't need full-fledged programs (yet, unless you want to be reverse engineering stuff)
Do you think freecodecamp is a good starting point?
I know you didn't ask me, but feel I can add some input.
It all depends on what type of learner you are (you may find that you fit in multiple categories).
The 4 most predomenant learner types are:
Visual
Auditory
Read/Write
Kinaesthetic
I'll include a link to a resource I find explains these types the best https://web.wlu.ca/learning_resources/pdfs/Learning_Styles.pdf
Once you've identified what learner type(s) suite you best, you can then start looking around for learning resources that nurture that. I think we can all agree that THM suit kinaesthetic learners very well and that YouTube channels like John Hammond's suit Visual learners very well.
Lots of resources out there to teach us a thing or two about the subject we're interested in 🙂
The pinned messages contain some resources people have collated before
Thanks for your explanations! @wraith latch
Gave +1 Rep to @wraith latch
Hasn't it been proven that there is no such thing as a type of learner?
You are not a visual learner — learning styles are a stubborn myth. Part of this video is sponsored by Google Search.
Special thanks to Prof. Daniel Willingham for the interview and being part of this video.
Special thanks to Dr Helen Georigou for reviewing the script and helping with the scientific literature.
Special thanks to Jennifer Borgio...
I still feel I learn better by doing
Sure, you can still have a preference but there isn't an scientific evidence to backup the actull efficiency
But if it makes learning more enjoyable than definitely
I agree in saying there's no such thing as a "I'm a X learner", in practice you are more likely to fit a combination of styles but I'm no professor and don't have any resources I'm willing to look up right now to back up my claim XD
well, there are some styles that I have trouble dealing with 🙂
Went back to my old code for creating a pyramid and XD for (int j = 0; j < n + i - n + 1; j++)
So i+1
Exactly but instead of sitting down and figuring out what I was doing old me just experimented and brute forced it, then probably said "if it works it works".
Week 0 of CS50 feels so boring...
maybe i’m wrong, but wouldn’t that be an infinite loop?
unless some other code specifically changes the relationship of i to j, it will eventually exit
oh ur right, i saw j = 0 as i = 0
Could somebody help me out with the installation and set up of the Streamify tool by Kit4py?
hi guys ... is there anyone here that knows a bit about PHP
ask your question
do u mind going into voice channel?
I wont. Im just letting you know that people are going to be more likely to help you if you just post your question 🙂
I don't have time to go into voice, but if you just ask your question you'll likely get more answers from the community than the 1 or 2 opinions from a voice chat
ok but because i wanted to include some screenshots
you can post screenshots here
in Natas game of ovethewire site in here
when u show up the source files u get this help
the question is what is the different between passing this path /etc/natas_webpass/natas8
first time: as an argument to page like this : http://natas7.natas.labs.overthewire.org/index.php?page=/etc/natas_webpass/natas8
THM has some rooms on PHP local file inclusion, maybe you could try those and see if they make sense to you
and the second is passing it as a path http://natas7.natas.labs.overthewire.org/etc/natas_webpass/natas8
i know what is LFI but i am asking a pure php programming question
Your question is largely unrelated to PHP. It's a web request question.
How the server handles the request is what you're after, and I know i've seen very similar content in one of the CTF rooms
ty so much
Yeah it's a common theme
/../../ should help 😉
console.log('I need some help')
I want to masters in DSA but i am still confused in resources
Anyone can give me a better roadmap.
Can anyone explain why --prompt=Bloodhound is not setting my venv prefix to Bloodhound?
I am know I am probably doing something silly, but I haven't figured out why it is not cooperating...
my pyvenv.cfg even has
include-system-site-packages = false
version = 3.11.4
prompt = 'Bloodhound'
executable = /usr/bin/python3.11
command = /usr/bin/python3 -m venv --prompt="Bloodhound" /home/purp/Tools/bloodhound/.venv```
Test my environment?
I got the same result. I don't think using the relative path or the absolute path is the issue
It works as expected.
😂 Well that doesn't fix the issue haha. I wonder if it might have something to do with the virual machine I am running it in.
so
const firstarray = document.querySelector("firstarray")
let data = ["Joe", "Mama", "Ted", "Roosevelt"];
let list = document.querySelector("firstarray")
function newtext(){
for (i = 0; i <data.length; ++i) {
let li = document.createElement('li');
li.innerText = data[i];
list.appendChild(li)
}
}
is throwing an error
javastuff.js:9 Uncaught TypeError: Cannot read properties of null (reading 'appendChild')
at newtext (javastuff.js:9:10)
at HTMLButtonElemen
and idk whats going on or why it is
Do you have a tag called "First array"?
a little hint, when you use querySelector and want to find a classname, you need to write the selector as a CSS selector
also please write codeblocks in backticks for readibility 😄
start at the beginning and confirm if you actually have the correct element selected
gotcha, thanks! will start finding where i tagged the wrong element!
ill try, javascript has been increasing my appriciation of python by so much lol so simplistic
carefully go through your code line by line, you are querying and assigning the same list element twice. There are some more issues but step by step 🙂
javascript is the best btw 🔫 😉
yes. But when we query a DOM element and assign it to a var, we never use let in JS ( not literally never, to clarify ), so the const from your first line was correct
oh
I get your line of thinking and why you chose let though. Hang on a sec, let me find some resources. JS is a little funny
wait, were all uses of let in this incorrect? also adding some backtick notes to make it easier
not all of them
let someArray = ["foo","faa"]; is fine
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const
here is some more in depth information about let vs const in JS but... also dont overwhelm yourself I think. Just have some fun and make stuff work, then refactor and improve later
ok, so const arnt reassignable, and are set values. let is changeable value and is used in the body of the for loop
oh i see what i did wrong now
the variable im trying to change is an ul, idk why i am having the loop create an li when it just needs to change whats in the ul
oh god
hmm no thats fine, for every list item you need to create a li element and append it to the ul and set the innertext of the li*
ohh
the problem here ( Uncaught TypeError: Cannot read properties of null (reading 'appendChild') ) is that its trying to append your li to an element but that (target)element doesn't exist.
<ul id="firstarray"></ul> this is the target element 🤔 so would i appendChild("firstarray")?
The selector is not correct. Irs a very very small thing but will make all the difference 😉
answer in here, spoiler in case you want to figure it out yourself a little longer
|| if you use querySelector, select the element as a CSS selector. In this case you would need to use: document.querySelector("#firstarray"); --> so use #. Alternatively you can use document.getElementById("firstarray") where you dont need the # ||
I wont look at that for 10 minutes, ill spend 10 minutes googling before i click it
if in 10 minutes its not solved ill check
yeah awesome ^^
So, after a very quick google, i realized every example code i seen had a #, so i added that, and now two more even scarier errors have confronted me 🤣
haha
Uncaught TypeError: document.getElementById(...) is not a function
Uncaught ReferenceError: Cannot access 'data' before initialization
after i tried a # i went back and checked and realized getElement looks nicer
but now it doesnt exist
it seems like you are using 2 different things mixed
either use;
document.getElementById("foo"); --->>>>>> NO #
document.querySelector("#some-id");
FWIW I would use getElementById since that is what you are doing. You are finding an element by its ID, so this is the most intuitive method ( in my opinion )
Im convinced flask and js hate me. Fixed the error, refreshed. now it cant find the js file lmao what is this maddness
[18/Jul/2023 18:09:37] "GET /javastuff.js HTTP/1.1" 404 - It was just working 🤦♂️ ok lets try to change how it finds the javascript file then lol
skipped the flask run for now, just going to the straight static file until this bug is found
good idea
so, const firstarray = document.getElementById("firstarray") is comming back saying its not a function
well that getElementByID is not a function
yeah that is a little odd
is there a typo somewhere?
maybe you are trying to query an element before the DOM is loaded
That does seem to be a problem. becouse when the button is clicked it pops up Uncaught ReferenceError: Cannot access 'data' before initialization
right
Im slowly developing a new found fear of javascript
its not hard to fix, just google js onload event and you'll find answers
gotcha, will do!
you get used to it 😂
Hi
Hello
I don't understand why this prints a pyramid with the base at the bottom: ```
#include <stdio.h>
void pyramid(int n);
int main (void)
{
int height = get_int("height:");
pyramid(height);
return 0;
}
void pyramid(int n)
{
if (n==0)
{
return;
}
pyramid(n-1);
for (int i=0; i<n;i++)
{
printf("#");
}
printf("\n");
}```
Shouldn't the pyramid have it's base at the top then whittle down
Because recursion
Right but the function gets called at pyramid(n-1) don't we get n-1 hashes printed first, then -1 and so on
Walk through it with pen and paper
If we start with height 4, pyramid (4) > 3 > 2 > 1 until base case where we return nothing where the numbers are how many hashes they print
If you aren't going to take my advice and actually walk through it, my advice doesn't change
pyramid n-1 ignores the for loop until it reaches base case?
well you are correct, it prints the 1# first then a new line, then 2#
Trace the code path on paper, writing changes, outputs and function calls in the order they appear - your question will be self answering
another way to look at it: you can't move onto the next line until the function has finished/returned something
Ok so we get stuck in the n-1 loop until we reach n = 0 at which point the function quits without returning anything
yes, and what called the function with n=0 ?
as a point of order, C/C++ functions that have a return type of void technically return 0.
ah, never programmed in it
I think the piece I was missing is after we hit n = 0, pyramid (1) still needs to be executed and so forth
Good
how is this possible
using express in node
i cannot for the life of me figure out where this is being logged from
i got rid of all my middleware too so its none of that
Impossible to say without seeing the code
well i mean
i can't send the whole project lol
was just seeing if anyone had maybe encountered something like this before with express
I haven't, but I know JavaScript well enough to know it behaves weirdly sometimes.
Is it only in the specified endpoint this happens, or is it every endpoint?
it seems to be only this route
router.use(middleware.verifyJWT);
router.get('/', (req, res) => {
const data = {
test: 1,
};
return res.status(200).json(data);
});
so i guess i'll just go through that middleware line by line adding console.logs to see where it happens
only happens on non-200 error codes too
I assume veryfyJWT is handling the errors then, in that case it makes sense it might log something from that middleware
don'tsuppose you see anything on a quick glance? https://pastebin.com/y7B8BbwZ
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
oh wait, when i remove the return next(response) lines, and just make it return response it doesn't log that
i thought i could do this but maybe i misunderstood how express uses this middleware
I honestly don't remember too much about middlewares at the moment, haven't worked with express in a long time
@cursive orchid https://remysharp.com/2014/05/23/where-is-that-console-log
This of any use?
not for this issue but that is interesting
https://www.geeksforgeeks.org/when-to-use-next-and-return-next-in-node-js/
maybe this helps in regards to that ( just for understanding what is happening )
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
just post your problem here?
Quick question, in this output on line 1459 is that the actual implementation of the printf function in the stdio library? ==693277== ==693277== Conditional jump or move depends on uninitialised value(s) ==693277== at 0x48C24B8: __printf_buffer (vfprintf-process-arg.c:58) ==693277== by 0x48C2D90: __vfprintf_internal (vfprintf-internal.c:1459) ==693277== by 0x48B8BDA: printf (printf.c:33) ==693277== by 0x109168: main (in /home/kali/Documents/programming/cs50/garbage) ==693277==
and if it is, could I then by extension knowing where it is in memory modify the instructions at that location
dear C gods, suppose I have this code
int pid;
pid = fork();
if(pid == 0) {
//child
printf("child id: %d\n", getpid());
}
else if (pid > 0) {
//parent
printf("parent pid: %d", getpid());
sleep(3);
kill(pid, SIGTERM);
}
why does parent pid print after 3 seconds have passed?
IO is has its own buffer
writing to stdout doesn't necessarily flush the buffer and force the write
thank you
Gave +1 Rep to @magic falcon
Because terminal output is buffered and you don’t have \n in your second printf?
Hi,
So im tryna make a P2P chat app in the style of crypto (no centralised server). The plan is to have to bits of code talk to each other and once they have established communication they will send encrypted messages. the issue i am having in the first place is trying to get the 2 sets of code to talk across the web (im in aus and my friend is in america), the client can send requests out to the other client IP (in this case it acts as a server) but the server (ill call it a server from now on but it its the "other client" that is being connected to) cant get the requests (I assume this is due to the router not knowing where to send the traffic to there for dropping it). the plan is to make this simple to setup and not need either user to setup portforwarding to their device
I've not got any experience in making such an app, but would suggest you look at online resources. When I look for phrases such as "how to make a p2p chat app" I see lots of youtube videos and articles that go over this in detail.
Based on that I think you need to start with figuring out how to make a p2p network in whatever language you've chosen, then factor in how to encrypt/decrypt messages etc.
In this video I will build a real-time & offline-first P2P messaging application using Gun.js & React.
The app that we will be building is a messaging app. We will be building both the server (Express) as well as the client (React).
Code:
https://github.com/dabit3/react-p2p-messaging
Blog post:
https://dabit3.hashnode.dev/how-to-build-a-decen...
Can't vouch for the content here though, just wanted to give you an example ^^
I feel like you may need to use sockets? Not sure though sorry, just shooting in the dark here. Good luck though!
i am using sockets
the issue is when the person (say my friend) trys to connect to me, my router does not know where to send the traffic to therefore it cant connect. and i dont want to port forward, its supposed to be plug and play on networks you cant access the router on
"MQTT" is a technology you should look at
what does that mean, sorry fgor late reply, i fell asleep
im curious as to how i can use that possibly in my app
thats cool
now to work out how its used in python
i've made a login system but i need to test (not pentest) it for errors etc. is there any framework for this typa thing?
flask, django iirc are 2 good ones
hello
could someone help me how to run these file *just by relative path only
i using venv in python *currently the only way i can run just by calling full abspath
*because i dont want to mess up my code with others -> so i want to use the relative paths only. Thanks
Sorry, you mean absolute path?
And just open a terminal in pycharm and make sure your in the same folder, then run it
But how exactly will it mess up the code with others
Honest & logical
what you guys do think?
https://www.youtube.com/watch?v=cxySUFEn9Vg
Will ChatGPT replace developers? Or will it just be a tool? In this video I share my opinion on this revolutionary technology ...
I teach developers how to successful create freedom through freelancing and software products. Either through one avenue such as Freelancing or through building software products that generate income, or both. ...
Have not seen the video, but the answer is no, it will not.
anyone here know how to use dirbuster in kali linux
I'm trying to use the command, "dirbuster&" to open it up while keeping the terminal usable, but dirbuster just blocks the entire terminal
nvm im a fkin idiot
(Just had to drag the window away and saw the terminal)
hello guys, I need help understanding IPC in C.
I have this code: https://pastebin.com/hamYxBuK
my understanding is that I should have TEST written on STDOUT of the main process. Apparently my understanding is wrong, since nothing is printed out. What do I not understand here?
update: system(command); returns 0
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
lol i mean frameworks/checklists for chcking input, i've already built the api
For which language ?
For python, there's pytest
For java there's junit, C# has xUnit
it’s express in node. i’m aware of libraries for testing, i have jest setup. but i’m looking for things to check in a signup/verify/login
e.g., signup with username already taken, signup with bad chars in username etc.
i have not, i’ll look into it
yeah you want an integration test, or an end-to-end test
there's also Cypress
depends if you have a UI involved I guess
if you're purely on API testing, then Postman is capable as well
Why can't it?
Besides the great point he brought up in the video of AI right now not knowing how to implement things without direction, AI also lacks the human elements of creativity and problem solving that an I/O machine just can't provide (for now?)
Extending on @tranquil flame's brilliant response, AI (or Machine Learning as it was called until about a year ago...) requires already known answers, it can be used to mix old answers into new ones, but it cannot verify if the answer is valid. It will never be able to without human input, because the AI don't know how it's "supposed" to work. Unless we write tests it understands.
AI will change the way we work, but it'll not be this huge impact everyone is talking about.
It can't verify if the answer is valid -> That is only true for the LLM's that are the hype now, they are language models that bluff their way into thinking they are talking like a human. In general though, computers are very good at verifying if things are valid, computer-assisted proofs have been used for decades in mathematics and other sciences and are much more diligent/accurate than humans at proving formal things. So taking a more general approach to AI, there will almost certainly come a point where they can talk like LLM-based chatbots can now, while at the same time understanding the concepts they are talking about, that would be the point where AGI (Artificial General Intelligence) becomes as good as humans in reasoning. But rest assured, they will only be as good as us for a very brief moment. After that, they will be better at everything humans can do or will achieve 😉
People say humans have 'unique' properties like creativity and imagination etc, keep in mind those all arise from a network of interconnected neurons that aren't creative or imaginative by themselves, just like a neural network in a chip or in software isn't. But this might be getting a bit off topic for this channel.
Eventually i think it will
Is learning C++ necessary for starting to learn cyber security?
not really.
no.
What are some necessary languages to learn for pentesting?
BASH, Python, and PowerShell seem like no-brainers, but I’ve spent less than a year in the tech industry, so I’m try to learn things that are useful
Programming knowledge isn't strictly necessary, but it helps to understand how things work.
battlesnakes is a cool one
Learn one in that case for now, which ever interests you. As a beginner it's important to be able to "read" code IMO.
Like follow along an exploit in exploit-db for example and understand what it does
Is there a tryhackme-like site that teaches C? If not what's a good site to learn C?
There’s a few websites that take a gamified approach, check out the pins
Best way to learn any programming language is to come up with small-ish projects that contain the concepts you want to learn
I’ve also found books to be insanely worth the money. I purchased an O’Reilly book on Python, and so far it has proven excellent
If you want something more interactive that is web based you could try codecademy or datacamp.
Both sites are very similar to try hack me with categorised lessons, learning paths for each language split into introduction | intermediate | advanced, and you get a certificate of completion at the end if you pay for a subscription.
Anyone have some good practices when it comes to cleaning up things with ansible?
For example, you installed some packages and scripts etc on an instance, but then you want to remove everything associated with that.
Do you reverse the previous tasks/roles ? or is there any other way of doing this without having to do this in a multiple-steps way.
Not quite "programming" but no devops channel seems to exist 🙂
@crude chasm nice Lt Cmdr Data image
You'll probably have to create a cleanup task
Yea i guess thats the only proper way
hello
hi
are there any cool ideas for a pentesting tool ?
I created a Discord as a C2 that you can look at, or try programming yourself. It’s on my GitHub if you want to check it out https://github.com/bucksnort2/PyC2ord
🙂
nice!
imo replace Type: <type id> with the named type
pardon?
So instead of (Type: 1) or (Type: 65), print the name of the type
someone can maybe help me to call a function from an address i got from GetProcAddress() and parameters of a specific type? for some reason when trying to call a function from dxgkrnl.sys it causes a BSOD with SYSTEM SERVICE EXCEPTION
def handle_response(response, data_name):
if response.status_code == 200:
return response.json()
print(f"Error in {data_name}:", response.status_code)
print(response.text)
return None
def search_by_number(api_key, query):
url = f"https://api.companieshouse.gov.uk/company/{query}"
response = session.get(url)
return handle_response(response, "Company Info")
def search_by_name(api_key, query):
url = f"https://api.companieshouse.gov.uk/search/companies?q={query}"
response = session.get(url)
data = handle_response(response, "Company Search")
if data:
if 'items' in data:
return data['items'][0]
return None```
menu = """
1. Search by Company Number
2. Search by Company Name
3. Exit
Enter your choice: """
api_key = "[REDACTED]"
headers = {'Authorization': 'Basic ' + api_key}
with requests.Session() as session:
session.auth = (api_key, '')
while True:
choice = input(menu)
if choice == '1':
query = input("Enter Company Number: ")
company_data = search_by_number(api_key, query)
if company_data:
extracted_company_data = {k: company_data.get(k, 'N/A') for k in ['company_name', 'company_number']}
print("Company Information:", *[f"{k.replace('_', ' ').title()}: {v}" for k, v in extracted_company_data.items()], sep='\n')
elif choice == '2':
query = input("Enter Company Name: ")
company_data = search_by_name(api_key, query)
if company_data:
print("Company Information:")
print(f"Company Name: {company_data.get('title', 'N/A')}")
print(f"Company Number: {company_data.get('company_number', 'N/A')}")
if 'address' in company_data:
address = company_data['address']
print(f"Address: {address.get('premises', '')} {address.get('address_line_1', '')} {address.get('address_line_2', '')}")
print(f"City: {address.get('locality', 'N/A')}")
print(f"Postal Code: {address.get('postal_code', 'N/A')}")
else:
print("Invalid choice. Exiting.")
break```
What I've been working on lately
I made a webserver in PowerShell!
https://github.com/bempus/PowerShell-WebServer
You may want to avoid menus and overly nested conditionals
Seconded. Also consider putting interactive code is a separate file, keep things clean with MVC design pattern
Also yeah
Hey i need som help. I fry to do a iframe how covers the entire page. Can you help me?
You mean contain the entire content of the iframe or cover the entire host window?
If you mean window you can do height:100vh and width: 100vw.
<iframe src="https://test.com/" height:100vh width:100vw></iframe> is this what you meantis this what you meant
i am doing it in a html script
i got it
<iframe src="https://test.com/" height="100%" width="100%"></iframe>
width="100vw" is the correct syntax
So add the = and quotes
If you wanna do it inline
ok thanks for the help and guidens
What are you building?
I don't know but it's giving me an idea for some cute obfuscation
yeh thats why I asked
oh I misread your comment
I'm curious what they are trying to do filling the full view with an iframe, is what I mean
Oh yeah I know
it may or may not be a little suspicious :p
Yeah but behind the iframe
The best rickroll
Could set the iframe to opacity:0, making the video visible, but not able to interact, instead clicking on some other website you cannot see!
Yeah but that's less fun
can anyone add json format recording feature to this tool by opening a pull request?
the biggest thing to be aware of is that when -l is in live mode it scans every 5 seconds, and will save every device it finds to a file every time
https://github.com/HalilDeniz/NetProbe
i wanna learn java script from three links you have given do i have to do all three or any one if so which one is best to learn frm
no one can answer ?
It doesn't matter too much imo. Pick whatever free hello-world like tutorial on YT that you like. I think the main important thing is to actually write code and not to keep copying tutorials until infinity ( some people fall into this trap, its called tutorial hell ). Personally I like https://courses.webdevsimplified.com/, he has a YT channel as well. Just keep in mind that the main thing is for you to actually do projects 🙂 it doesn't matter if they aren't good at first. Just start making a simple site or some other fun thing!
If you have any JS or general html/css questions, you can always ask here. I love to help in this regard *to an extent 😉
anyone doing DSA in JAVA ..?
DSA or ECDSA?
Either way, don't reinvent the wheel and use a proper lib
I think bouncy castle is the de facto standard for Java
@clear lodge since you enjoy CSS shenanigans, I submit https://cohost.org/lunasorcery/post/2465593-testing-your-animati
(Seems to behave weirdly on multi-monitor mixed-refresh-rate setups. Also, if you use Reduced Motion, make sure to turn it off for the animation to work)
To read it, look for the lowest number which isn’t turning and which appears in dark text (ie isn’t flickering on alternate frames).
Original version, supports 30/48/50/60/90/120/144hz:
Warn...
Enjoy
uhh, he probably meant "Data structures and algorithms" not the "Elliptic curve with Digital Signature Algorithm"
That's also possible, DSA is also an encryption algo
There is a site which runs some scripts and provide data. I want to have the alert whenever the data is provided but the catch is the alert feature is for premium users. So i was thinking will it be possible to create alerts using python requests? Like making get/post requests and extracting the data from html. I tried poking around but the site ended up saying error in running the scripts. Any heads up about it?
hmmm not sure I understand your query, would you mind giving an example?
ha thats cool
Sounds like they want to scrape a site and ping them when an alert should sound
Yeah but I don't want to see the code
yeah, but an example would be very helpful
Talking about CSS shenanigans: https://dev.to/thormeier/dont-try-this-at-home-css-as-the-backend-what-3oih
oh my god
|| https://chartink.com/screener/5ema-15min-bullish ||
This page have a run scan option and the data is provided at the page below
I want to request the page using python and get that data
we just gave you resources in general
HTML as backend when?
Hopefully never
Heya, I'm struggling to access a flask app I started inside a docker container. I started the app on 0.0.0.0:5000, I exposed said port in the Dockerfile and used docker run -p 5000:5000 IMAGE to run the container. Neither google nor chatgpt have proven helpful :/
Would appreciate any ideas :)
If you run netstat or ss on the host, can you see the open port?
found my mistake. Instead of running it with CMD ["flask",...] I should have just done CMD ["python", "server.py"] 
finally i was able to post it, the tool has some minor issues, but it works just fine
https://github.com/HalilDeniz/ICMPWatch
help ive been getting this error:
UnboundLocalError: cannot access local variable 'socket' where it is not associated with a value
and the code is:
import socket
import threading
import os
print("welcome to blah blah password manage!")
print("you are currently at the home page")
def ping():
socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
socket.connect((host, port)
socket.send("ping".encode("utf-8"))
s = socket.recv(1200).decode("utf-8")
print(s)
socket.close()
but when i check the code there isnt any problem, i even rewrote the whole ping function
Again I'm very basic in python, but the way I see it you referring to socket but you never gave a value to socket before referring that's what I understand from the error msg
Just guessing, but it might be because you're naming the variable socket (same name as module)
Can't seem to see any other problem with the code
there is no variables with the name socket thats code it self copypasted from my text editor
First line in the ping function
I may be wrong about it
Not on pc, so I can't test
yeah, thats the first time its initiated and thats the line the error is calling
that was what the error was referring to, thats why it was so confusing
I meant to try renaming it to something else

@tight gull
I get the same error in this piece of code
I assume what the issue is, is that when you tried doing
socket = socket.socket..
It thought you were referring to the local socket variable (the one you just created) and not the module
Probably best to not name variables the same as global variables or modules to avoid issues like that
yeah
I take that back
I get to use python on mobile for the first time since I've downloaded it
been using the same program you used too, although switched to termux when i discovered it
I don't think I'll ever be in a situation where I'd need to use python from my phone but I guess it's nice to have
especially for testing snippet of code before implementing it
I think you're meant to push it to production before testing
Refering to this, you could google 'reserved keywords python', im no py dev but in js there are reserved keywords and I reckon it will be the same in python too
That way you can learn about them for the future too 🙂
There is probably a list
Just realised I've never used anonymous functions in python yet
Use them all the time in js/ts
use a linter
as a best practice, yeah. In actual practice, python totally allows it and which variable named the same thing gets used depending on scope..... so your results not following the best practice can be very unpredictable if you have complex code
reading the error message with a view of socket is like i 'm not associated with a value, i live independently
Made this as a side project. I feel it could have some use. Feel free to contribute:
https://github.com/Aaron-Fuller/NetworkMonitorTool
shooting a blind shot here.
I'm modifying a dos music tracker (adlib tracker 2, git:jsf/at2) .
It's written in pascal, I once knew a dude named pascal.. and that's the end of my pascal history...
Anyone who can give me a clue on something to look for in the pascal source to figure out where the function I want to edit is in the source?
I'm looking to find a certain function in the source, and I simply don't have a clue what to look for.
the function is pretty much:
currentStepInPatternEditor = 1
If keyPressed is in keysThatAreNotes:
currentStepInPatternEditor += 1
Simply, when I insert a note, it advances one step inside the pattern editor.
Depending on how it looks I'll change this to toggle between 0-8 steps, or if it's too much of a bother I'll just set the step to 0.
Won't be using pascal once I'm done with setting this thing up how I want it since I mainly track on the 6581/8580 chips but have a few soundblaster tunes coming up and thought I would make my experience in the tracker as pleasant as possible.
Anyone who can give me a clue on something to look for in the pascal code to figure out where the function I want to edit is in the source?
Are there any other features?
You do realize there are very few ethical uses for a denial of service script, and very many unethical ones. You were also previously warned to not promote your GitHub and related software in this channel.
So, do you think the hping3 tool is a denial of service tool?
Yes.
It may have legitimate uses, but the primary one seems to be to set up a flood
I am constantly writing network tools and improving myself on this subject, and I always test the working features of the tools with hping3.
Keep the DoS shit in the maldev channel then at the very least
and soon i will write a tool like hping3, maybe i will update this tool accordingly
And at least add the proper disclaimers on your repo, because you will be held responsible for misuse of your tooling
If anyone is interested in learning C# check this course on freecodecamp. It's a free course and you'll get a certificate from Microsoft on completion.
Learn how to earn a free C# certification! freeCodeCamp has teamed up with Microsoft up to bring you a new free professional certification: the Foundational C# Certification. The course is a text based course, not a video course. This professional certification includes 35 hours of text-based training and interactive coding challenges all from M...
hi everyone, i'm trying to make a packet sniffer(like wireshark) in python for a school project, obviously a lot less complex, but I was wondering if anyone had any like tips or suggestions or anything for it. I've started making it a couple days ago so im not too far in either. Any help would be appreciated 😁
actually wait, it says this for complexity
We don’t help with schoolwork here sorry
i saw that, good for sharing
for line in file.readlines():
print(line)
while line := file.readline():
print(line)
are there any benefits to using the walrus operator over a simple for loop?
except to look fancy
okay so not in my example however,
# read chunks of 32 chars/bytes from the file until we reach EOF
while chunk := file.read(32):
vs
for chunk in file.read(32)
where using := allows you to loop over the entire file in 32-byte chunks insteadf of looping over the first 32 bytes
Interesting, thanks for the update
have you verified this behavior? file.read() doesn't seem to advance the file pointer on repeated calls..... and that seems to be a fundamental misuse of the walrus. := looks like its intended use is to store the result of an expression for later use so that the function call doesn't have to be repeated to access the data (common example is if (l := len(list)) < 10: print(l) instead of if len(list) < 10: print(len(list))
> have you verified this behavior?
I have yes, you can try it for your self if you want - it does indeed advance the pointer and that code is the same as
while chunk:
chunk = file.read(32)
the use of the walrus operator is to assign a value to a variable in the middle of an expression, like with that while loop
➜ cat test
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
ccccccccccccccccccccccccccccccc
ddddddddddddddddddddddddddddddd
➜ cat juun.py
with open('test') as file:
while chunk := file.read(32):
print(f'New chunk: {chunk}')
➜ python juun.py
New chunk: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
New chunk: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
New chunk: ccccccccccccccccccccccccccccccc
New chunk: ddddddddddddddddddddddddddddddd
➜
@icy bobcat
mylist = range().append(range())
result = [x for y in mylist: x = process(y)]
should be fairly close to what you want
i posted a month ago my dnswatch tool got 52 stars it's really a great feeling for me
https://github.com/HalilDeniz/DNSWatch
Are there any good places to learn programming? I'm more talking about places similar to THM, whereas they'd teach the basics, and give you exercises to work something towards, so you could develop on your own. Anyone knows any good ones?
Actually thm has the python for pentester I guess it's a advanced python that will help you make your own things
yeah I saw for beginners and then there's advanced course, but nothing in between, and not as big and as deep as THM itself is, just for programming
Think for python the médium level it would be those rooms like Django and stuff but don't know something deep as thm but for programming
Maybe udemy but you'll have to filter what is good and what is not
Ooh
Thx
Gave +1 Rep to @tepid glen
I got a lot out of Automate The Boring Stuff With Python. It starts off with the basics but then it shows you how to use libraries to do image manipulation or filling out forms or webscraping. When I read it some years ago, it helped me get from a perpetual beginner to a medium level.
Before I read it, I felt like most tutorials were like "this is a variable, that is a for loop, OK great now go build the moon lander or something"
It helped me get past that "I have all the pieces but what do I do with them" stage
Oh, I see, thank you for your input!
You can automate the same things you can do in Python in bash and powershell, right?
I recently learned about https://frontendmasters.com/. It’s not just front end though. Unfortunately I don’t think it’s challenge-oriented but they do have good courses from what I can tell
But basically, I think the best way to learn programming is to create a GitHub and actually just write code. But work on projects that interest you. Don’t just program things for the sake of programming them
And just Google and read help and examples from websites as you go
That’s my recommendation
There are websites like hackerrank and leet code, but I’m not really a fan because they generally focus on solving abstract problems. But you can learn stuff from those websites too
you learn the techniques of problem solving from the abstract problems
Doing projects like James said and a bit of leetcode here and there could help too. Leetcode is kind of different but you learn a different type of problem solving that is part of programming as a whole
having a project is super useful and good, but a lot of being a good programmer comes from being exposed to lots of different types of problems
Yeah, I agree data structs and algos are important but only to the extent you can use them
which you may not ordinarily get making your dnd character creator webapp
not even DS&A..... that teaches how data is organized and how to build efficient algoritms. But problem solving itself is slightly different. It's the mental flexibiility of adapting things you know to things you don't yet know
Ah I see what you’re saying juun
I agree
I guess I just prefer to get that mental flexibility by solving my own interesting problems and not just trying to calculate the value of pi for absolutely no reason
Hehe. I found leetcode very helpful in really being forced to learn ( JS in my case ) methods and their effects. Especially with array methods. It helps to intimitely learn the specifics of a language in my experience
If you dont have a CS background ( like myself ) its good to do so
But I do agree leetcode problems by themselves are kinda... like whatever often. I havent come across problems like that much in day to day work but it will help you improve overall
Yeah, I never got into leetcode much, but I grinded out problems on hackerrank. I hated that stuff haha. Useful in the abstract but super boring for me
It can also help with job interviews. Just on a practical level
Oh for sure
Sigh…. I am not looking forward to my next technical interview haha. I’m great at working problems but I just don’t feel like refreshing my memory on ds&a just to pass an interview but it is what it is ha
Haha yeah. Its not super fun but.. gotta do what you gotta do
But that website I linked above has a great course on that stuff. I think it’s free so I’ll probably take it
Its also a little annoying that you dont know often what type of tech interview its gonna be
Yeah like whiteboard or take home?
Sometimes they wanna drill you on like framework specific lifecycle hooks or design patterns, sometimes its takehome, sometimes they want you to solve a leetcode type issue
These are all quite different things ya know. You can prepare for one thing and then .. they ask about a totally different area
Haha yeah
And then sometimes its just behavioural 🙃
I think that’s why it’s important to just be super nice, honest, and laid back. If you know your stuff, it seems like those details could be discussed and explained out.
Yeah
As long as you can talk to a human you can turn the conversation
I had 1 interview where they made me do a proctored test before talking to me at all and my score just wasnt enough, because they asked about stuff that wasnt my area. Its fine I guess, just means the fit probably wasnt right anyway
Their loss tbh but.. I wasnt super excited about working for them after that anyway whaha
Yeah, sounds like it worked out ha
I have very limited experience in terms of having worked only for a few small companies
So I haven’t gotten a taste of what you’re describing yet
Ive only ever worked at 1 company as a dev
But doing consultancy so still go through the interviewing process
Ah, I see
Every time we need a new client I mean
Im going to divorce from my employer now though. Got a fantastic offer ( one of which I feel like I messsed up the tech interview badly but apparently not ) but my boss is being a total ass about it unfortunately
So either way its done
That’s awesome, but sucks your boss is being a prick lol
Yep
I had a similar disappointment with my management last time I was promoted. It’s complicated and we’ve settled our differences but man
That sucks ....
Yeah, ha. It is what it is.
If anything I have even more job security now because they trust me even more
Did it drag on for long?
About 6 months lol
Oh god
😬😬
They were probably worried that I was going to do something brash because the boss totally disrespected me. But I just played it cool the whole time
Lol
Smart
Yeah. It’s never good to lose control or act out of pure emotion unless it’s positive
At least that’s how I do things
Generally lol
But it’s quite difficult when someone is literally gaslighting you, disrespecting you, and manipulating you all while paying you $30k under the market rate 🙂
Hahaha
Yeah, my uncle told me that when someone has no cards to play that’s when they get upset
Because they have no leverage
My boss is in the 'if I cant win, everyone else must lose' mode. Unfortunately I am in a very difficult spot right now and he... well he is a sociopath at the least so theres no 'reasoning' on a human level. I dont have the same type of business or legal knowledge so it will be a little tricky to navigate the coming few weeks. My visa is dependent on him so I cant like.. push too hard maybe? I dont know. We'll see what happens.
Yikes
Yeah, tread very carefully
Just be as nice and respectful as you can, but make sure you politely draw your line in the sand in case he tries to make it personal. Just know internally that you have dignity and just smile and nod to whatever he says. You don’t need to agree with it, but it will show him that you’re in control and you won’t operate on his level
That’s my advice anyway
Yeah, for sure
Like when my boss said that I wasn’t a software engineer, after disagreeing with him the first time, he basically repeated the statement and I essentially just said, “ok.” Lol
It’s like whatever man lol
Lol
Anyway, this is kinda depressing we should probably switch gears unless you want to stay on this ha
Programming is fun
All I wanna do is just write code and work in a team
Hahaha
🥳🥳
Actually, hey, I think I’m going to get a workout in. It was really nice chatting dolphin. I’ll see you next time 🙂
Same 😄 enjoy the workout!
Thanks, will do 🙂👍
Also, document everything, emails and chats especially
Keep an archive in case things mysteriously disappear
definitely, thanks
wife had a messy breakup with a previous employer, lawyers were all to happy to have the archived emails
My college would do this.
My brother worked for the IT department, they would often get requests from HR to delete emails from people's inbox to avoid the college getting in trouble
Probably illegal though, can be considered destruction of evidence
that's really difficult to prove, especially if there's no paper trail requesting the destruction
This is true, hence why you should archive