#programming

1 messages · Page 1 of 1 (latest)

wraith latch
#

Nope, nor going to

keen olive
#

Anyone here know how to convert from py to exe. For my script i imported from cryptography.fernet. However, when i convert to exe using pyinstaller, it does not work not sure what is the issue

#

I am currently creating a ransomware for my school project

#

here is my code

true pumice
#

Don’t send malware here

#

!rule 10

narrow terraceBOT
#

Rule 10: Do not post viruses or malicious files without explicit permission from the administrative staff. We understand that this is a discord for learning, however, there are plenty of places online to get malware for forensic examination and reverse engineering. This includes in the advanced channels.

true pumice
#

Nobody is helping you convert it to a .exe

#

If you do, you will be muted for 24 hours

stoic badger
#

Even if it is for school, you’re usually required to sign some kind of NDA or equivalent for this very reason

stone kayak
brazen eagle
lilac holly
#
    global is_locked
    if is_locked:
        while is_locked:
            ```
how do I keep this loop going until the lock is set to false somewhere else without killing the cpu?
onyx merlin
#

It will kill the CPU because it spins

stone kayak
#

sorry

#

time.sleep() *

lilac holly
# onyx merlin This is a spinlock

yes, but what other options do I have?
I currently have a script that takes a file and thread maps all lines into a function
I am trying to get the function inside the thread to run with a delay between them, to separate the load so I was thinking about something that would lock the function once it starts and release it once the heavy work is done

onyx merlin
#

I think I said the other day that you'll need to learn about locks and inter process signalling

lilac holly
#

I did I have been trying for like 2 days but I can't seem to find what I want, threading.lock should work but I sometimes run the function elsewhere in the code recursively and that's what breaks everything

magic falcon
#

As James said, a spin lock is what you want. Inter process signalling is always tricky, as there's a lot the programmer has to manage to make it work.
I would advise you to read some articles on concurrency and parallel programming; many of them will be written for C and C++, higher level languages will have equivalents. You absolutely need to understand the low level implementations of semaphores, mutexes and what atomicity is for what you are attempting.

onyx merlin
# magic falcon As James said, a spin lock is what you want. Inter process signalling is always ...

https://en.wikipedia.org/wiki/Spinlock#Alternatives tl;dr it's not going to work without burning CPU cycles.
Heartily agree about learning concurrency techniques like that, albeit probably not as low level as you'd recommend

In software engineering, a spinlock is a lock that causes a thread trying to acquire it to simply wait in a loop ("spin") while repeatedly checking whether the lock is available. Since the thread remains active but is not performing a useful task, the use of such a lock is a kind of busy waiting. Once acquired, spinlocks will usually be held unt...

lilac holly
#

I rewrote the whole code but now I am trying to get it to release the lock in case of a crash, some on stack overflow suggested the usage of with lock and to have the exit function release the lock but I have no idea how to implement it

class threadlock(threading.lock):
    def __init__(self):
        threading.lock.__init__(self)
        self.acquire() = acquire()
    def __enter__(self):
    def __exit__(self):
        self.release()

I haven't had to work with classes at all in python before and I have actively avoided them

onyx merlin
#

Honestly python is the wrong choice for concurrency IMO

lilac holly
#

It's just that I already wrote over 600 lines in the main function 🥺

#

not getting it to work after I thought everything is already complete is just

onyx merlin
#

In economics and business decision-making, a sunk cost (also known as retrospective cost) is a cost that has already been incurred and cannot be recovered. Sunk costs are contrasted with prospective costs, which are future costs that may be avoided if action is taken. In other words, a sunk cost is a sum paid in the past that is no longer releva...

lilac holly
#

Everything is already working I just need to figure out how to set the release on exit

inland hazel
#

and the sunk cost fallacy

surreal bronze
#
#[test]
    fn successful_decoding() {
        let hash_decoder = HashDecoder::new();
        let result = hash_decoder.crack("098f6bcd4621d373cade4e832627b4f6").unwrap();

        assert_eq!(result, "test");
    }

This is failing because it's comparing "test" with test, how can I get rid of the quotation marks?

near phoenix
#

yes

rustic lake
#

yes

surreal bronze
#

ok

pastel lava
rare pulsar
red fable
#

I'm using one of #Hydra's scripts. It's all correct. It makes a request to yadda-yadda, takes arguments. It's all good.
It's complaining about my ip variable. I don't know why os.environ doesn't like IP's...

#

Doesn't acccept a url either

#

Does it need strings? Docs say it works with a string, if i'm not mistaken (really can't tell with myself anymore)

#

Oh, "environment variables"

tropic minnow
red fable
#

that's odd. It's from Hydra....

#

But that makes sense

#

in that case, he should fix that blobfingerguns

#

thanks @tropic minnow

wispy kestrelBOT
#

Gave +1 Rep to @tropic minnow

red fable
#

now i need to figure out how to call it with 'request'

#

or just strip it down but that's not fun

#

I don't want to just hard-code the ip in there. I want to figure this out.

#

got it, lol..

#

im stoked

#

apparently you can export bash variables and python will grab them... that's awesome

#

with ```py

os.environ.get('X') ```

lilac holly
#
127.0.0.1:26789: Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\seleniumwire\thirdparty\mitmproxy\net\tcp.py", line 92, in write
    return self.o.sendall(v)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\OpenSSL\SSL.py", line 1845, in sendall
    self._raise_ssl_error(self._ssl, result)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\OpenSSL\SSL.py", line 1692, in _raise_ssl_error
    raise SysCallError(errno, errorcode.get(errno))
OpenSSL.SSL.SysCallError: (10054, 'WSAECONNRESET')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\seleniumwire\thirdparty\mitmproxy\server\server.py", line 113, in handle
    root_layer()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\seleniumwire\thirdparty\mitmproxy\server\modes\http_proxy.py", line 23, in __call__
    layer()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\seleniumwire\thirdparty\mitmproxy\server\protocol\tls.py", line 285, in __call__
    layer()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\seleniumwire\thirdparty\mitmproxy\server\protocol\http1.py", ```
#
    layer()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\seleniumwire\thirdparty\mitmproxy\server\protocol\http.py", line 206, in __call__
    if not self._process_flow(flow):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\seleniumwire\thirdparty\mitmproxy\server\protocol\http.py", line 288, in _process_flow
    return self.handle_upstream_connect(f)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\seleniumwire\thirdparty\mitmproxy\server\protocol\http.py", line 254, in handle_upstream_connect
    return layer()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\seleniumwire\thirdparty\mitmproxy\server\protocol\http.py", line 103, in __call__
    layer()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\seleniumwire\thirdparty\mitmproxy\server\protocol\tls.py", line 285, in __call__
    layer()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\seleniumwire\thirdparty\mitmproxy\server\protocol\http2.py", line 346, in __call__
    self._complete_handshake()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\seleniumwire\thirdparty\mitmproxy\server\protocol\http2.py", line 132, in _complete_handshake
    self.client_conn.send(self.connections[self.client_conn].data_to_send())
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\seleniumwire\thirdparty\mitmproxy\connections.py", line 107, in send
    self.wfile.write(message)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\seleniumwire\thirdparty\mitmproxy\net\tcp.py", line 98, in write
    raise exceptions.TcpDisconnect(str(e))
seleniumwire.thirdparty.mitmproxy.exceptions.TcpDisconnect: (10054, 'WSAECONNRESET')```
any idea why it is happening?
#

I am running multiple selenium threads, I tried having extreme time between them but I am still getting it

brazen eagle
# red fable

check to see exactly what that command does (hint it takes in an Environment variable name)

onyx merlin
#

Yes

#

Break the task down and google each part

sick stone
#

Ah, teach a man to fish

onyx merlin
#

No point in solving the problem for them, they'll learn more by solving it themselves

stone kayak
#

watching the google carbon talk. They keep on saying "dont use carbon if you can use rust, we love rust" like thats going to stop me

magic falcon
#

All I'm hearing is reasons to not use Carbon

sick stone
onyx merlin
sick stone
#

Touché

finite cedar
#

hey what is the best ide for python?

true pumice
# finite cedar hey what is the best ide for python?

I use default because it’s what I’m used to but it’s all preference.

I use VScode for JavaScript because the plugins are useful and I’m not familiar with the language so auto fill is nice.

I’d probably play around with a few and see which one you prefer:)

lilac holly
#

I like old looking ide’s like the eclipse ide

#

Does anyone know ides that look like that

#

Like a simple one

#

Not notepad ++ or anything like that

sick stone
#

PyCharm is the most noted one

#

I've used it for a while, but I prefer Notepad++ in the end

#

PyCharm feels a lot like Eclipse

#

The only reason I prefer N++ is because most of the stuff I program is pretty simple and is less than 100 lines or so, PyCharm over complicates it for me... but if you are programming more intense stuff I'd recommend it

true pumice
#

PyCharm is horrible, I hate it so much

#

The IDE is clunky, it is a fatter version of VScode, it is over complicated for no reason and it feels like so overkill

magic falcon
#

PyCharm is a bit heavier than VSCodium; if lightweight is the goal, just use VIM. PyCharm does have a lot of features and requires a pretty solid understanding of python to really utilize to best effect.
I really like it for the venv management features and the step through debugging.
IMO setting up debugging is a bit more complicated in VSCodium than PyCharm, but still pretty trivial if you have any experience with IDEs at all.

#

If all you need is to edit quick files and don't require a full project management integration, PyCharm probably isn't what fits your use case best.
There are a lot of other python IDEs, and I think most linux distros have a 'standard' py IDE that gets included on a basic desktop install.

lilac holly
sick stone
#

sublime is amazing... not sure how I forgot about it lol.... and yeah, that's basically what I was saying, I think PyCharm is useful if you have a very large project, but gets in the way if not

pastel lava
wraith latch
glossy vapor
surreal bronze
#

What main features are you looking for?

#

I used to also hate pycharm but after sitting down and learning the features it gives I love it, its also why I program in IntellJ for rust due to how easy it makes my life

#

as Juun says the step through debugging is also so helpfull

vivid jetty
true pumice
#

Sounds like a marmite advertisement

sick stone
#

Some of you guys are way too passionate about disliking an IDE lol

magic falcon
#

In all honesty, the 'best' IDE is the one that makes your workflow and life easier. What that means is different for each project, and sometimes for each task on the same project.
The only way to really know what's best for the use case is to have tried a bunch, and keep a shortlist of what you think is reasonable.

clear cliff
#

Hi can someone help me with data serialization in python?

magic falcon
#

I use VIM very often, because a large part of my job is reviewing files on remote systems that don't have a desktop environment installed. That makes my life easier.
But VIM isn't what I use for everything, as developing my config scripts to pull down different packages on each box I touch is tedious

inland hazel
#

heck even cobol is still kicking

chrome carbon
#

Hello!
I'm wondering if anyone have knowledge of exploits for .NET.

I am admin of a system and have full access to the server, this is however irrelevant to my question.

There's a search function on the webpage where if you type the characters "> it gives a 500 error, does anyone know if this can be used to gain access to the database or similar (I am admin for that too ofc) or is it just a dead end? (Even though I know it's never safe to get an error when searching) and if anyone knows a search-query I could test to see if it's vulnerable.

I have tried some of the most basic things and so far nothing's given me any results.

The backend is .net with a sql-database and angularjs (v1) as front-end.

brazen eagle
chrome carbon
#

Hmm, I'll check what it says tomorrow, maybe it is actually something like that.

Thank you!

onyx merlin
#

Oh those absolutely suck

#

Just ruins the fun, but it doesn't apply to JSON or file input as a fun fact

wispy kestrelBOT
#

Gave +1 Rep to @onyx merlin

onyx merlin
#

I've got XSS on an app that seemed to have that filter because it didn't seem to properly filter in some places. It allowed upper case but not lower case or vice versa

#

It blocked the word alert

lilac holly
#

is there any way I could make this save so it just keeps on adding to the dict without overwriting it

onyx merlin
#

It blocked alert, allowed eval, allowed eval("ALERT()".toLowerCase()) etc

lilac holly
onyx merlin
#

Don't use globals

#

And you'd want an array of employee objects, or to change the key you're using in the dict

lilac holly
#

dang it

#

I wanted

#

the dict to act as a database

#

so theres absolutely no way

#

I can do that

lilac holly
#

cant I use append

#

it worked with arrays

onyx merlin
#

I don't think you understand the datatype

#

You may wish to read the documentation again

lilac holly
#

Alright

#

I guess maybe making a file

#

would make it work?

#

@onyx merlin

onyx merlin
#

There's a reason data structures and types are one of the first fundamentals taught in programming courses

lilac holly
#

my mistake

spare swan
#

I created a Wordlist Generator in python. Does anyone want to take a look at it? Not a code review but just test the program and tell me what you think

wispy kestrelBOT
#

Gave +1 Rep to @spare swan

spare swan
#

I have worked on it quite a lot though. Thanks :)

wispy kestrelBOT
#

Gave +1 Rep to @vast parcel

stone kayak
brazen eagle
#

TIL Python had those

magic falcon
#

It was an update in 3.10 IIRC

true pumice
#

Yikes, switch cases

spare swan
true pumice
#

Not something I would consider ever using in Python, not necessarily bad:)

spare swan
#

I thought that since they were a new addition to python, they had some sort of benefit, but I do prefer other methods.

true pumice
#

If they work the same as other programming languages, they 100% are benficial

#

I'm just oldschool

surreal bronze
#

What is this point of this function?

magic falcon
#

i think it's simpler/faster to for a human to parse than the old if elif chaining - should render the same way at execution time though

true pumice
#

Generally something to avoid

true pumice
surreal bronze
magic falcon
magic falcon
true pumice
#

Nope, it's used

#
def write2(key, date):
    for w in [key, reverseString(key)]:
        for f in [returnString, reverseString]:
            if use_swedish:
                w = replaceChars(key, r_swedish)
            writeToList(w + f(date))
            writeToList(w + lastTwoChars(f(date)))
            writeToList(w + lastTwoChars(f(date)) * 2)

Looping over two functions, my guess it's to cast

#

But that can be done with String()

magic falcon
#

Yeah, I don't see the benefit then

true pumice
#

@magic falcon What was that language that exports straight into a document that you told me about?

#

For .pdf making

true pumice
#

nono, it was an actual programming language

#

Similar syntax to Python

magic falcon
#

Markdown and asciidoc are my current favorites for quick and dirty docs that don't need to be attractive

true pumice
#

Was that you or am I going insane

magic falcon
#

Sphinx?

#

That's a python documentation library. For documenting your code

magic falcon
#

Ah! Jinja is a template thing that gets in a lot of places

true pumice
#

Yeah, I realise now 😆

magic falcon
#

Sphinx, Django, Ansible all use Jinja2 as a lib for templating

true pumice
#

I'll take a look blobfingerguns

#

Thanks

spare swan
#

Did anyone take the time and try out the program lol. As of now Ive only seen people giving me feedback about my code

spare swan
#

Is globals not ok for color formatting?

#

Oh nvm thats constants

spare swan
#

Did you try it out?

spare swan
#

Oh okay. No worries

brazen wigeon
#

anyone else learning C right now?

stoic badger
#

That's really funny that it keeps track of that

final juniper
stoic badger
#

Genuinely don't remember, only the fact that it was from Oracle

bronze geode
#

can I ask something about oop

#

Im tryna code a basic airplane simulator with all oop rules implemented

#

and I have no clue how I can implement interface, abstraction, and inheritance at the same time

stoic badger
#

If this is coursework, it's probably cheating to be getting help like this.

#

That being said, the things you're describing aren't "rules" of oop, they are aspects of oop that are useful to make cleaner, more extensible projects. If you're using any kind of GUI, you are more than likely going to use all three of those OOP concepts.

#

And if you don't understand what something is, you have the entire internet and thousands of hours of tutorials and explanations to search for online

bronze geode
#

its not course work

surreal bronze
bronze geode
#

im taking like a bootcamp right now

#

and I have to make this for practice

#

its not for marks

#

I have to make a airplane simulator and use: inheritance, polymorphism, abstraction,interface, encapsulation

#

it doesnt have to do anything its just a basic program to understand oop better

#

I think I have some ideas now, how to code the program but Im not sure about a couple of things

magic falcon
#

So it is homework

#

It's coursework for the bootcamp

bronze geode
#

its practice

#

I dont upload it anywhere

magic falcon
#

You're paying a lot of money for the bootcamp, you should get all the value you can and ask the instructor

bronze geode
#

ye ik, it was 9pm when I asked the question

#

so cant really get help at this hour

#

I managed to make it work

wraith latch
#

Look it's just that people are very helpful here, but when you're on a course or something like that you really should be reaching out to your instructor or tutor for help. This place is more to have a general programming discussion outside no involvement with academics whatsoever ❤️

fiery quarry
#

I'm learning PHP to understand how back end works and how vulnerability happens
Is there any recommendations for me

wraith latch
lilac holly
#

Is Rust good for writing malware? Can Rust go as "low level" as C++ for example?

wispy kestrelBOT
#

Gave +1 Rep to @onyx delta

pine cypress
lilac holly
#

how do I unlock that channel?

pine cypress
pine cypress
lilac holly
lilac holly
#

jk, I am learning new programming language

#

Bcs I am studying CySec and want to have one" malware" language for reverse engineering/writing it itself

#

I read that Rust is becoming popular in this field, and according to text that you sent its bad

pine cypress
wet hull
covert stirrup
#
maindiv = document.querySelector("#d_app > div.product-page-box > div > div:nth-child(1) > section > div.hero-slider.product-page-image-slider-container > div.product-image-row > div.gallery-container.gallery-container--alone.gallery-container--medium.gallery-container--horizontal > div.gallery-container__image.item-upgrade--frame > div > span > img");

document.addEventListener ("keydown", function (zEvent) {
    if (zEvent.ctrlKey  &&  zEvent.altKey  &&  zEvent.key === "g") {
        url = maindiv.src;
        console.log(url);
        window.open(url, '_blank');
    }});
#

im not really sure why my code isnt working

#

its a chrome extension

#

and it just refuses to recognize my keybind

true pumice
lilac holly
hidden elm
#

Cus it looks a bit different in your code

#

I know in the stack overflow post you said you followed it but it looks different idk

lilac holly
#
var rp = require('request-promise');
const fetch = require('cross-fetch');
#

One difference

hidden elm
#

hmm maybe its different for node or something. Tbh I'm not sure because I know barely anything about programming to be honest with you

#

Been meaning to do cs50 for years now lol

true pumice
lilac holly
#
const response = await fetch(ArduinoUrl, options);
const response = await rp(options);
``` Another difference
lilac holly
#

I have NOT tried a different endpoint for a standard fetch() though like you said so maybe i'll alter that code and try again

#

But according to the doc I shouldn't have to be making fetch calls. I should be able to use their API instance. It doesn't seem to be working.

#

Although I did some snooping and internally they are just making fetch() calls anyway through the API library

#

All the API does is make Fetch() calls for you and abstract it. Which is odd that no matter how I am doing this I get a 401

#
    devicesV2ListWithHttpInfo(opts) {
      opts = opts || {};
      let postBody = null;

      let pathParams = {
      };
      let queryParams = {
        'across_user_ids': opts['acrossUserIds'],
        'serial': opts['serial'],
        'tags': this.apiClient.buildCollectionParam(opts['tags'], 'multi')
      };
      let headerParams = {
      };
      let formParams = {
      };

      let authNames = ['oauth2'];
      let contentTypes = [];
      let accepts = ['application/json'];
      let returnType = [ArduinoDevicev2];
      return this.apiClient.callApi(
        '/v2/devices', 'GET',
        pathParams, queryParams, headerParams, formParams, postBody,
        authNames, contentTypes, accepts, returnType, null
      );
    }

``` From their github
lilac holly
lilac holly
#

@true pumice OMG you're a HERO. I still have no idea why the API isn't working but doing my own fetch request with the URL you suggested worked ! ```js
[Symbol(Response internals)]: {
url: 'https://api2.arduino.cc/iot/v2/devices',
status: 200,
statusText: 'OK',
headers: Headers { [Symbol(map)]: [Object: null prototype] },
counter: 0
}

true pumice
#

You’re welcome:)

lilac holly
#

Clutttch

keen olive
#

anyone can explain to me what does this code do

surreal bronze
#

Makes a request to download a file from an FTP server....?

#

Hence the ftpwebrequest and file URL ftp.../wilson567.pfx

keen olive
#

ohh

#

$_|fl * -Force
then what does this mean. I am assuming it is to force the download?

surreal bronze
#

You got it

#

At least, that is my interpretation of the code

wild skiff
#

?roles

keen olive
#

ah ok thank you so much

lilac holly
#

Im having trouble with this python script

#

Is there anyway

#

I can make it so if you call any of these keys in the paramater

#

it will use the value like

#

print(test.headers)

#

so if you wrote

#

it would display cookies

#

the cookies of a website

#

print(test.cookies)

true pumice
#
import sys

test_input = sys.argv[0]

print(“You typed: “ + test_input”)

Otherwise, using a parameter handler is probably better so that you can get flag short hand and long

surreal bronze
#

Click is very good for this kind of thing

lilac holly
#

thank you

#

so much

#

Sys module might of not been for this

lilac holly
#


import requests
import sys
import pyperclip as copyOutput

# Note if you want to save your output to a file the output has already been saved to your clipboard
# So you can just paste it in your file
while True:

    print("say --help if you want to see list of options next time you run the program")

    helpmenu = '''

-P to request for a paramater

Paramaters:

-P headers
-P cookies
-P status_code
-P url
-P history


Currently at this moment these are your only options due this is still in its early stages



    '''

    if sys.argv[1] == "--help":
        print(helpmenu)
        break

    if sys.argv[2] != "-P":
        print("Invalid Paramater")
        break


    contents = ''
    ParamaterContents = ''
    paramaterList = ['cookies', 'history', 'status_code', 'url', 'cookies']


    def requestWebsite(websiteLink, header):
        global contents
        global paramaterList
        contents = requests.get(websiteLink)
        print(contents.text)
        copyOutput.copy(contents.text)
        for availableParamaters in paramaterList:
            if str(header) not in paramaterList:
                print("Non existing Paramater")
                break
            print(contents.header)
    

        
    
        


    #try:
        requestWebsite(sys.argv[1], sys.argv[3])
    break
    #except:
        #print("Error with paramaters given")
    



#

I just started using the sys.argv

#

today

#

so I was messing around with it

#

but I cant seem to

#

get it right

#

its trash

true pumice
#

It’s not trash.

#

You’re misusing it

lilac holly
#

I was talking about my code btw

#

not

#

sys

surreal bronze
#

It will save you from a lot of pain in the future

magic falcon
#

argparse is also a great lib to use to build a CLI

brazen eagle
#

It's not bad for standard python

tacit pecan
#

Hey I was wondering if someone might be able to help me out?
I am trying to install macOS using only my keyboard, everything is going fine until the screen to choose which drive to install

magic falcon
#

are you trying to install the macOS software in a VM or on mac approved hardware?

tacit pecan
#

In a VM

#

Is it a different process?

magic falcon
#

Is that VM hosted on a mac?

tacit pecan
#

Yep

#

I can select almost every option using either alt+tab or spacebar except for the drive selection screen

magic falcon
#

Ok, then it should work and you shouldn't be in violation of ToS. I believe apple has documentation on it

tacit pecan
#

Yeah I have tried but unfortunately none of the options have worked

#

Is there potentially a way to install the OS just using command line?

magic falcon
#

Not a mac person, no idea

tacit pecan
#

Ah ok, well thank you anyways

tacit pecan
digital dove
#

Plan B: Buy a mouse 😄

tacit pecan
#

Lol unfortunately I need this vm to work without a mouse for the time being

#

Is there any other key combinations I can try?

surreal bronze
#

Is it not possible to just use a mouse temporarily?

tacit pecan
#

Maybe I can just install macOS through the command line?

#

Is that a possibility?

tacit pecan
#

It also makes no sense why I can go through all the other menus perfectly fine with a keyboard but when it comes to selecting the drive there seems to be no possible keyboard command for that

surreal bronze
#

Hmm, never installed a mac before so no idea sadly - sorry

digital dove
tacit pecan
tacit pecan
digital dove
tacit pecan
#

Ah I see, I will take a look and see if there is something in the documentation that might help, didn't think to consider that it might be an issue with the vm application

#

Thank you for your help!
Hopefully I'll be able to figure it out

surreal bronze
#

Good luck!

tacit pecan
#

Thank you!

digital dove
tacit pecan
#

Is it possible to enable it in the installer menus? Because that would be awesome

digital dove
#

Try it out. 💪

covert stirrup
#

someone please save me

#

join vc LOL

#

im getting this error and have no idea what to do

#

Address: 0 Expected Value: 280c Received Value: 3fff

#

googled it and it seems pretty situational

#

need a master

rain rover
#

Any tips to get better with powershell.

Just completed hacking with powershell room.

And I feel like it is not enough

#

?

magic falcon
#

Manage a system using powershell

#

or even, manage mutiple systems with powershell

torn basin
#

Hello ,
So I am currently learning bash scripting and I got a question .

So I have a txt file and one example of line is :

insite:top secret inurl:do,Google,valley.com,https://valley.com/things-to-do,Things to D

I want to extract the domain that is valley.com .

The logic formed can be a string which is after second "," but before third "," .
But I am not sure How should I add to a variable .
Can anyone help ?

I tried to google but maybe I am not entering the right keywords to get the correct direction.
Any keywords that might land me in the correct direction is also welcome .

P.s: I am not doing anything unethical or illegal 😅
And this is not a homework .
Trying out to code myself .

Thank you

torn basin
#

Got it . Thank you .

wispy kestrelBOT
#

Gave +1 Rep to @vast parcel

lilac holly
#

Hey guys quick question. So I want to implement super simple rate-limiting to my cloud function via IP key store to prevent API abuse. Now, I know there is a Redis-Googlecloud-Serverless option but uhhhh it costs money. So far i've spent a grand total of $0 for my API and cloud functions and i'd like to keep it that way. Is there any other keystore databases that would work well with the cloud functions? Or if I just implement it in my code inside my cloud function via a npm package would it still work? Idk a bit lost on this looking for advice thanks.

winged magnet
#

can anyone guide in regarding API programming i have quick questions to ask

pale arch
onyx merlin
lilac holly
#

anyone know why this isnt working

#

heres the output

#

as a test

#

heres the output

#

then says this

lilac holly
onyx merlin
#

If there's no state then you'll struggle yeah

halcyon sphinx
# lilac holly

'seq 1 254' is treated as string not as a command, you should remove quotes and add $(seq 1 254)

halcyon sphinx
# lilac holly

And i am not really sure why are you concatenating sequential number with an IP.

zenith fulcrum
#

Hi guys, i need help with a project I’m doing, it consists of adding a button to chromium that executes specific code, someone can help me?

#

So, I’ve to add a button i chromium that execute a code I’ve previously written. I downloaded the source code but I don’t know where to start 😅

haughty oracle
#

hello everyone ! i thinks most of you are maybe developer and i was asking myself
how i can become a better developer ? and how i can progress
like i would want to put something on my github and have other dev showing me my error but for exemple i don't know at all what to put on it iiii don't thinks my creation are usefull for the world or they are just for private project

sooo i don't know what would i suggest me ? :) thanks

solemn beacon
#

u are doing it for the improvement

onyx merlin
#

Compared to last time you asked, this is missing way too much information.
My point about learning how webapps track sessions still stands

tacit pecan
#

Hey everyone! I was wondering if someone might be able to help me out? I am trying to write a bash script that will execute a command after a certain duration after another command has started to be executed, how would I go about doing this?

tacit pecan
solemn beacon
#

yes

#

but sleep function doesn't look like that

#

search on google

tacit pecan
solemn beacon
#

yep

tacit pecan
wispy kestrelBOT
#

Gave +1 Rep to @solemn beacon

solemn beacon
onyx merlin
#

Where did you get the file?

#

-ban @azure raft -ddays 1 Vigilante activity. Trying to evade HWID detection on a file.

wispy kestrelBOT
#

🔨 Banned Xy#8442 indefinitely

lilac holly
#

Okay so I have pretty much given up on using google cloud functions because trying to add functionality while keeping it free is becoming a massive challenge. It seems like the easier option for a small side project would be to upload my nodeJS to Heroku, and then intergate a database and memstore that way. I think using cloudfare for CDN stuff also seems easier this way and as far as I can tell is 100% free you don't even need to enter your credit card. Thoughts, opinions?

fiery quarry
#

Hello everyone, I want to learn back-end development to be good in web pentesting, What should I learn for example (PHP and ASP.net or one is enough) (do I need MVC) ?

remote echo
#

There is no working compiler or toolchain

How can you learn it if there isn't a working compiler for it

bronze plover
#

hello everyone, i was searching about programming languages that were needed in cybersecurity, and i found out that C/C++ is one of the most required ones, what do you recommend to learn it? like any website or smt, thx for any help

vale cairn
#

You don't need to know how to program for cyber security, it can help you for sure but isn't essential. If you want some decent languages to learn, many start with a C derived language and something like python/ruby but it's not essential.

I'd definitely invest some time at some point but once you learn a few styles of languages and understand how to navigate documentation, you can program in other languages of similar styles using experience and documentation to help

For getting started books and websites can be useful. I started with books and found them useful but SoloLearn was really good and CodeAcademy was pretty good also 🙂

#

@bronze plover ^ (forgot to click reply haha)

bronze plover
wispy kestrelBOT
#

Gave +1 Rep to @vale cairn

vale cairn
#

Yeah, fair enough 🙂 The main times programming will probably come in use is if you want to write a tool to automate a process, examine the code behind an exploit you're using or eventually to develop a proof of concept exploit AFAIK

#

There may be some other uses but they're the main ones I can think of that pertain to cyber security

bronze plover
#

what would u recommend to start learning?

#

i did actually thought u used a fair bit of programming there

#

i started to a learn a bit how to virtualize and got kali linux installed, wanted to learn some tools there but...its so much that it gets hard to understand smt in special

#

and dont know what is actually usefull or not

vale cairn
#

It's worth learning but it's not worth focussing your entire learning on if you're wanting to go into cyber security because with a bit of google etc. you'll probably be able to find out how to do whatever you're trying to accomplish

#

if you're looking to get started in cyber sec and are not sure where to start I'd recommend checking out #start-here , that being said it's definitely worth learning the basics of a scripting language such as python 🙂

bronze plover
#

thx

#

u have been really helpfull

#

thx

vale cairn
#

nw gl 🙂

bronze plover
#

one last thing if u could help me, i wanted to learn more about the paths inside cybersecurity, i know that there are many paths and i dont really know which are the ones i love and want to follow, could u explain a bit and/or help-me how to learn more about it

vale cairn
#

somewhere in the starter path there's a room that introduces you to the different jobs involved with cyber security and there's a little quiz you can do that helps you determine the sort of thing you might be interested in. From there you'll want to work towards whatever path interests you (but first I'd get a strong foundation doing things such as the starting paths like presec etc.)

bronze plover
#

thx 🙂

lilac holly
#

How can I make two different web pages detected as focused without any extensions? can someone explain the concept itself because I tried googling and I couldn't get it

lilac holly
#

Should you be uploading a toml file to github? or anyother cloudfare files I should include in a gitignore

magic falcon
#

Depends on contents.

lilac holly
#

But in the tutorials it seems like they have one

#

Oh wait they removed their ID in the file lol

magic falcon
#

is there anything sensitive in the .toml? anything that uniquely identifies your cloudflare instance? Or is that cloudflare ID more like a public key?

lilac holly
violet whale
#

well...

wraith latch
brazen eagle
#

I wouldn't put real creds in a ctf

wraith latch
#

No lets not

wraith latch
lilac holly
wraith latch
lilac holly
surreal bronze
#

I definitely have the right Syntax

lilac holly
#

@surreal bronze

#

when I used the indent==4

surreal bronze
#

Show me your whole code

lilac holly
#

indent=4

lilac holly
surreal bronze
#

yes

#

I can't help debug it much without the code itself

lilac holly
surreal bronze
#

Replace that with print(json.dumps(nmapOutput, indent=4))

lilac holly
#

ok

lilac holly
#

I don't know how that would fix the problem tho

#

if this doesn't work

#

ill use

#

pprint.pprint(nmapOutput, indent=4)

#

yeah its the same thing

#

@surreal bronze

surreal bronze
#

Where are you running it from?

lilac holly
surreal bronze
#

No like, are you running it from the terminal?

surreal bronze
#

output the results to a file

#

do something like

lilac holly
#

Ill put it in a variable and write

#

the data to a file

#

like that?

surreal bronze
#
with open("test.json", "w+") as f:
     f.write(json.dumps(nmapOutput, indent=4))
lilac holly
#

ah ok

#

that would work too

#

ill do that

lilac holly
#

where you run it

#

not

#

in a file

surreal bronze
#

Yeah I just wanna see if that changes anything

lilac holly
#

ah ok

#

ill do that

lilac holly
#

seems to be doing it pretty well

#

do you want me to check

#

with the json file too?

#

or no?

surreal bronze
#

Sure yeah

#

I've just got home from holidays and really tired so probably missing something here, indent=4 has always worked for me so not sure, I will take a look tommorw if this doesn't work

lilac holly
#

turns out there is multiple

#

json python modules

#

and simple-json was the one I was supposed to use

#

now its new

#

neat

lilac holly
#

another script tripping on its ass

#

no way this works

#

like how

cursive orchid
#

what

#

do you mean

#

how

magic falcon
#

answered in #general . To repeat my answer here, functions are a first-order object in python.

onyx merlin
#

Tl;dr as to what this means: you can pass them as variables which is how the threading works there

vale rivet
#

Does anyone help me with this, how to read or open such file to debug or find the root cause of this error. Is there any specific command can help? I tried with cat and file so far, is there any better approach to debug such files
/hangs$ ls id:000000,src:000247,op:fs-havoc-generate,rep:4 

onyx merlin
modern niche
#

Hey humans und Neuzeitmagier
Can somebody please help me ?
I used linux since years but I never saw this „<<<„ in my live

Can someone „translate“ the following code for me and replace the „|“ with „<<<„?

find /usr/share/ | grep root | grep mysql | tail -n 1

onyx merlin
#

@true pumice

remote echo
#

|| wait until you realise this defines are backwards, so this ain't gonna work ||kekw

lavish vine
#

Hello
Can anyone tell me what does payload packaging means?
I was following nightmare on github and there author was using a p32 function from pwntools python to and was passing it a hex value
what is use of that function?
I couldn't understand its use from its docs

wispy kestrelBOT
#

Gave +1 Rep to @onyx merlin

lilac holly
#

?

modern niche
lilac holly
#

Oh

#

I will search and I find anything I will tell you

modern niche
#

No you shouldn’t search for it 😂
I just need one Human which „translates“ me this

#

I need to answer a question for a Command Injection
The pipe „|“ is filtered so I need to use „<<<„

modern niche
#

swissky@crashlab:~$ echo ${HOME:0:1}
/
Command Injection Bypass characters filter

swissky@crashlab:~$ cat ${HOME:0:1}etc${HOME:0:1}passwd
root❌0:0:root:/root:/bin/bash

swissky@crashlab:~$ echo . | tr '!-0' '"-1'
/

swissky@crashlab:~$ tr '!-0' '"-1' <<< .
/

Link: https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Command Injection/README.md

In principle, it is the same as the

It's very simple in itself. My problem is that I have never seen the command "<<<" and I have to replace the pipes with the "<<<" because the normal pipes in the php are filtered.
Of course, you can't just replace the pipes, but you have to rewrite the code.

#

Thank you very much !

wispy kestrelBOT
#

Gave +1 Rep to @vast parcel

modern niche
#

One question
What does this „Robocop“ ?

true pumice
stoic badger
formal mauve
#

Hey so I have a little question in connection to a writeup/documentation website im working on for my CTFs and general pretesting related stuff.

#

I have this css file I've referenced to my html

#

however it seems one of the classes I've made isn't applying it's properties to the <div> that I've put one of my paragraphs under

#

essentially it's supposed to center it on to the screen while also keeping it at the bottom of it

#

but it ignores or rather doesn't apply the alignment

#
  position: absolute;
  bottom: 0;
  text-align: center;
}```
#

here's what it's supposed to apply as a class

#
    <p style = "color: #262525; font-size: 100%;"> 2022 [name] Ⓒ All rights reserved</p>
</div>```
#

and here's the html snippet it's supposed to apply it to

#

however it seems to completely ignore it

#

on the left bottom corner is what's supposed to be centered

#

and here's what it says in the devtools

#

only using the padding property has worked up until now to get it centered, but I worry it's not going to be actually centered correctly if I specified it using percentage for all devices

formal mauve
#

Alright so nvm, stack overflow came to the rescue. I've sort of fixed the problem meaning it's now centered but still not compatible with mobile devices fully which wasn't my intention anyway but I figured I would go for it still

paper sky
#

just curious, is typescript used often? It seems pretty good

twilit fjord
tacit pecan
#

Hey everyone!
I was wondering if someone would be able to help me, I found this https://snapshot.debian.org/ and had a couple of questions.
First, how would I go about adding this to my apt command in Ubuntu?
And second, is it possible to add this to a non-Debian based distro such as Fedora?

onyx merlin
#

Debian and Ubuntu are not the same

#

So not mix and match packages across distros.

tacit pecan
onyx merlin
#

Not sure.
This isn't programming related though.

tacit pecan
#

Sorry, didn't know where else to really post it

lilac holly
#

it's a JS superset, and something of a beast to get used to if you've been using JS alone for a while

earnest sapphire
#

hi,
i want to find files (plurial) and i want to do it from a list i made. from a .txt file.
i didnt found a clear answer

#

how can i found files based on a list of names?

onyx merlin
#

Use find?

earnest sapphire
#

i know find but i dont want to write 10 names.. i want something more efficient

earnest sapphire
#

ok. thats what i mean.
any help with the way to write it

#

?

lilac holly
#

@earnest sapphire do you have a specific language you want to use, or are you planning on shell scripting?

#

a quick google appears that this could be a one-liner, something like this: while read -r line; do COMMAND; done < input.txt

#

in bash, zsh, etc.

paper sky
lilac holly
#

@paper sky sure, no problem

#

kind of interesting to see your question. I was literally working on some research to add Recoil (written in JS) support to MillionJS (written in TS)... so conversions would be necessary, and I haven't done any TS in a couple of months 😛

earnest sapphire
#

and i want to search in all the target a list of files that may be there
i am connected by ssh btw

lilac holly
#

hmm, isn't readdir is a pretty standard kind of thing?

earnest sapphire
#

readir and what after that?

lilac holly
#

ah no, looks like you just use a for-loop

#

@earnest sapphire i would filter for the files i was looking for and read them into the aforementioned while loop

#

however, as Ninja mentioned, find could be exactly what you're looking for. something like: find myDir/ -name *.js | ... but don't quote me on that exactly, i'm rusty with shell 😛

cursive orchid
#

hmm yeah find doesn't seem to be able to take a list of files for the -name flag, but as mentioned above you can read in the list of files and shove each into find:

while read -r file; do find . -name $file 2>/dev/null; done < files.txt
gusty elk
#

Hey guys!

#

Does someone help me teach the basic of ?

#

Programing

#

How do I know it's pinned?

#

Okayy. Yahh that's why I'm here 😆

tacit pecan
#

Hey everyone!
I was wondering if someone could help me out?
I am trying to download a specific file from a private repository, how might I go about doing this?

magic falcon
#

Get the repository owner to grant you access

tacit pecan
#

I am the repo owner, but I am very bad at git

#

I am trying to download a specific file from my private repo through the command line

#

Ok I will take a look thank you!

undone wasp
#

Has anyone developed a nodejs url directory scanner?

cursive orchid
#

like directory fuzzing?

#

(searching for valid files and directories)

high pine
#

hello

brazen eagle
brazen eagle
golden pollen
#

haii anyone faces 504 testing api problem??

lilac holly
#

Im having trouble with this script

#

when I run it

#

and put

#

a txt file thats located in seclists

#

it returns this

#

found the problem

#

fixed now

graceful bobcat
#

Must watch

covert stirrup
#

I am building a star wars card game in java

#

when a deck is created there is a for loop that runs through the suits and values and creates a unique version of each card. There are two zero cards that would be made, but neither has a suit and is just a tiebreaker card.

#

the way my deck setup is built is that the Card would take a Suit variable and a Value variable

#

how can i add two zeros with the correct datatypes?

#
public void createFullDeck() {
        
        for(Suit cardSuit : Suit.values()) {
            for(Value cardValue : Value.values()) {
                //add new card
                this.cards.add(new Card(cardSuit,cardValue));
            }
        }
        
        //this.cards.add(new Card("ZERO","ZERO"));
        //this.cards.add(new Card("ZERO","ZERO"));
    }
stoic badger
#

Assuming you're the one who created the Suit and Value classes, just add support for a null or 0 value, and then you can use that to initialize the "zero" card.

#
zeroSuit = new Suit(null);
zeroValue = new Value(null);
this.cards.add(zeroSuit, zeroValue);
this.cards.add(zeroSuit, zeroValue);
// or just construct the objects in the add() idk it's your code
undone wasp
#

Or in any other language besides python.

blazing maple
wicked flame
blazing maple
#

It is quite old but there is also dirb which is written in C.

brazen eagle
#

Fetch is also async by default which could be interesting

lilac holly
#

https://www.exploit-db.com/exploits/49490 any idea how to exploit this in python?
I am trying

import requests
files = {'files[]': ('files/upload.php4', 'rb')}
data = {'filename' : 'upload.php4'}
r = requests.post('https://localhost/wp-content/plugins/super-forms/uploads/php/', files=files, data=data)
print(r.headers)```
but it doesn't seem to be working
lilac holly
#

When you run it

lilac holly
lilac holly
brazen eagle
#

looks like you can't upload a php4 file

onyx merlin
dusty ore
#

Can someone help me with recursion? I can't implement my codes to work recursively. Despite numerous videos I watched, I still can't do it. People say that the factorial example helped them, but it didn't work for me...

brazen eagle
heavy rampart
# dusty ore Can someone help me with recursion? I can't implement my codes to work recursive...

Maybe this helps, he has done a good job in explaining recursion.
https://youtu.be/oBt53YbR9Kk

Learn how to use Dynamic Programming in this course for beginners. It can help you solve complex programming problems, such as those often seen in programming interview questions about data structures and algorithms.

This course was developed by Alvin Zablan from Coderbyte. Coderbyte is one of the top websites for technical interview prep and c...

▶ Play video
wispy kestrelBOT
#

Gave +1 Rep to @heavy rampart

cursive orchid
#

anyone know how to get the nth directory from Get-ChildItem -Directory?

#

powershell

#

i've tried just accessing by index [n] but that does something i can't explain

#

and using | Select-Object -First n | Select-Object -Last 1 also does something weird

#

nevermind it's working now

limpid arch
river night
#

Hello, I wasn’t to learn powershell and have no prior experience with it. Does anyone have good resources I could use for that? I eventually want to script with powershell

red fable
#

I'm having trouble searching for answers online, inserting variables into a bytes-encoded string.

$ python3 tcp_client.py "/something.php"

target_query = argv[1]

client.send(b"GET %s HTTP/1.1") % argv[1]

TypeError: unsupported operand type(s) for %: 'int' and 'str'

#

I guess it doesn't see the %s, but it works in normal strings.

#

nope... doesn't see it

#

here's the full thing:

tcp_client.py "10.71.71.1" "/something.php" 9998
#!/usr/bin/env python3

import os
import socket
import sys
from sys import argv

target_host = argv[1]
target_query = argv[2]
target_port = int(argv[3])

client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

client.connect((target_host,target_port))
client.send(b"\r\n\r\nGET %s HTTP/1.1\r\nHost: none \r\n\r\n") % argv[2]
    

response = client.recv(4096)

print(response.decode())
client.close()
#

ive tried other methods like {}, which works with fstrings

#

it connects fine but the string errors out and no real data gets sent

#

i'm wondering if it's even possible

magic falcon
#

You have a logic error in how you are doing the replacement in the string. Go back to the order of operations..... and the way you are doing formatted strings was, as far as I know, deprecated with py2.

red fable
#

.format() doesn't work either, if that's how you mean

#

b"" doesn't support it, at least

magic falcon
#

Correct

red fable
#

template strings?

magic falcon
#

That is a way to build the correct string

#

But does not get you all the way there

red fable
#

i'm guessing it needs to be "packed" prior, i'm reading more on formatting

#

or defining a function...

magic falcon
#

You are pretty close. You may find the mozilla docs on a properly formatted GET request illuminating

red fable
#

defining a function worked, with global variables... thanks for the hint

#

+rep @magic falcon

wispy kestrelBOT
#

Gave +1 Rep to @magic falcon

magic falcon
#

global variables are not recommended; too easy to have naming conflicts

red fable
#

hmm..

magic falcon
#

it's fine for short 1 file projects without a lot of imports, but for anything non trivial it can create a lot of havoc

#

as a sample, here's my code for the same thing you just did:

import socket
from sys import argv

tgt_host = argv[1]
tgt_q = argv[2]
tgt_port = int(argv[3])

with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as client:
    client.connect((tgt_host, tgt_port))
    code = bytes(f'GET {tgt_q} HTTP/1.1\r\nHost: {tgt_host}\r\nAccept: */*\r\n\r\n', 'utf-8')
    client.sendall(code)
    response = client.recv(4096)
print(response.decode())
client.close()```
#

the final client.close() may be unnecessary, as the client object should automatically call close as it leaves the scope of the with statement

red fable
#

yeah, the function is hanging as well... that's odd

#

connection accepted but it's hanging

magic falcon
#

I didn't do exhaustive testing by any stretch, my snippet functions and exits against python http.server

#

what kind of system are you running your code on?

#

did you check the local firewall ports?

red fable
#

it's an OpenWrt, using a simple python tcp-server script

#

there are a lot of rules, but I also tested with a much simpler, no args script with the same structure and it received and responded just fine.

magic falcon
#

It's likely that there is a http header item your human-made request is missing

#

you could always grab a pcap of a curl request to get your query and compare that to the pcap of your snippet

red fable
#

the post-form is just a farce... only a PoC, there's no real page it's querying

#

but it does recieve data sent and types it out.

magic falcon
#

but it hangs? interesting. can you step through your python code to see which line it doesn't return on?

red fable
# magic falcon but it hangs? interesting. can you step through your python code to see which li...

Something like:

# With a defined function

def main(x,y):
    socket.....
    connect....
    send(b"")...

    receive....

print & end

Server:


root@OpenWrt:~/Scripts/Python# ./tcp_server.py 

[*] Listening on 0.0.0.0:9998
[*] Accepted connection from 10.71.71.210:47244
[*] Received:

[hang]


Static/ hard-coded

client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect((host,port))
client.send(b'This is a message')

response = client.recv(4096)

print(response.decode())
client.close()

Server:

root@OpenWrt

[*] Accepted connection from 10.71.71.210:47248
[*] Received: This is a message

Response to client:

lemur@kali~$ ./tcp_client.py 10.71.71.1 "/" 9998
Acknowleged.
magic falcon
#

Right, but that's for a generic TCP port right? It's not expecting an HTTP GET request specifically.

red fable
#

No. there's nothing on the back-end. It just prints data

#

it's esentially just telnet

#

I don't think it has any real functionality, at least not that i know of yet

#

These are the beginning chapters to BlackHat Python II

magic falcon
#

Yeah, that makes sense. Be careful of the code, even in BHPv2. The 2->3 code migration is unreliable at best.

red fable
#

have you read it yet?

#

I don't have a frame of reference but I also didn't know it was migrated

#

from 2 to 3

magic falcon
#

Yeah

#

I learned both py2 and py3, and the differences are pretty obvious when you know both

#

there were some substantial style and syntax conventions that were changed

red fable
#

I've read that it's more "concise". Not sure if that's true or not

magic falcon
#

I also have both versions of BHP; and the code was touched just enough to usually run, although copy and paste isn't always reliable

red fable
#

not concise, but more clear

magic falcon
#

It's not

#

py3 is a step in the right direction in just about every way I can think of

#

wait, you mean py3 is more clear? Yeah, I think I'd agree with that. The semantic meaning seems to flow a little better, and it's a little closer to writing pseudocode

red fable
#

right. "clearly defined"

#

couldn't find the words

#

not sure how I will handle C but that's for another time

#

i dread the day

magic falcon
#

It's a different way of thinking.

red fable
#

just the syntax is intimidating. it seems really ephemeral

#

a lot of colloquial language, it seems like

magic falcon
#

It's the exact opposite of colloquial. It's pure technical.

#

It is context-dependent though. Maybe that's what you mean.

red fable
#

yes, english

#

not my strongest

pure flume
#

Is there anyone whose strong on python that can just give me a quick moment's advice? I've created a password generator (with assistance from Youtube/Guides as I'm still learning) The routine loops after creating the password and i'm trying to have it so that once the password is generated I then get given an option to "press any button to close the window" which then closes said window? Is anyone able to assist with the code required?

wraith latch
pure flume
#

import random

chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456!@#£$%^&*(`)"

while 1:
password_len = int(input("What length would you like your password to be : "))
password_count = int(input("How many passwords would you like : "))
for x in range(0,password_count):
password = ""
for x in range(0,password_len):
password_char = random.choice(chars)
password = password + password_char
print("Here is your password : ", password)

magic falcon
#

Those loops don't look right

pure flume
#

Oh?

wraith latch
#

Yeah your loops indeed look wrong, your script is infinitely looping essentially

pure flume
#

I'll go back to the guides and work out where it has gone wrong. Thank you for your assistance.

wraith latch
#

Your issue is the While 1:

#

You wrote it in a way where that is always true

#

because of this, you've created an infinite loop

#

remove that, undo the tabs and it will exit after running

#
import random

chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456!@#£$%^&*(`)"

password_len = int(input("What length would you like your password to be : "))
password_count = int(input("How many passwords would you like : "))
for x in range(0,password_count):
    password  = ""
    for x in range(0,password_len):
        password_char = random.choice(chars)
        password      = password + password_char
    print("Here is your password : ", password)

Here's the "fix"

#

What you could do for a next step to aid your study, try to put this inside of a function

#

That could be fun for you

pure flume
#

The issue that I can foresee and why I requested the, press any button to close the window is that I will first need to be able to copy the password generated. If it closes after generating then I won't have enough time to copy? 😛

wraith latch
#

Are you on Windows?

#

Or Linux?

#

Mac?

#

Potato kekw

pure flume
#

Haha, Windows. Running the .py file which is opening a CMD box.

wraith latch
#

Ah, let me teach you a trick

#

open up the directory in your file explorer where you've saved the script. Go to the address bar and type "cmd"

this will open command prompt already with that directory open

#

Then type python script.py

#

and you will retain the output

#

what you could also do, is add another function to your script which would be to copy the password to your clipboard

#

that could also be fun

pure flume
#

I'll give it a try and thank you. It is my aim to keep working on it so I'll look at doing both!

Thank you very much!

wraith latch
#

Not a problem at all! Have fun and stay curious 🙂

pure flume
#

Always!

onyx merlin
wraith latch
placid ivy
#

if I draw rectangle using pyqt5, how can I select it after drawing … I have its coordinates, is there any way to do that ?
so I can delete or move or copy it after

brazen eagle
wraith latch
brazen eagle
#

So much better than the alternatives

bright oasis
#

I am beginning a project with some pretty heavy code review. It’s written in C and i had a decent amount of experience working with C both writing code and exploiting it in school, but I was wondering if anyone had any good resources in mind to learn or guide through code security review? Especially if it’s specific to C

odd hare
# pure flume Is there anyone whose strong on python that can just give me a quick moment's ad...
import string
import concurrent.futures
import random
import sys


def password_generator(pass_len, char_set=string.printable.replace(string.whitespace, '')):
    password = ''
    for char in range(0, pass_len):
        password_char = random.choice(char_set)
        password += password_char
    return password


if __name__ == '__main__':
    try:
        while True:
            pass_count = int(input("No of passwords:"))
            pass_len = int(input("Length of passwords:"))
            no_of_cores = input('No of cores you want to use (default = 1):')
            print(no_of_cores)
            if no_of_cores is not int:
                no_of_cores = 1
            else:
                pass
            with concurrent.futures.ProcessPoolExecutor(int(no_of_cores)) as executor:
                list_ = [pass_len for x in range(0, pass_count)]
                res = executor.map(password_generator, list_)
                for r in res:
                    print(f"Your password is: {r}")
            print("Press CTRL C to exit")
    except KeyboardInterrupt as err:
        print("\nStopping")
        sys.exit(0)


surreal bronze
#

concurrent.futures.ProcessPoolExecutor(int(no_of_cores))

I swear its the ammount of workers, not cores

odd hare
#

He He He flexing skillsblobfingerguns

pure flume
#

@odd hareThank you, just what I was looking for. 🙂

brazen eagle
surreal bronze
lilac holly
pure flume
#

It just needs to be basic really, nothing too fancy. Just want password generation done on my machine rather than some website that's telling me it's been done on my machine but actually it isn't.

brazen eagle
#

yeah but using a basic PRNG can lead to someone cracking your passwords if they know/guess the seed

pure flume
#

Even if it's randomised?

#

Forgive me I'm not massively up on Python yet, I'm trying to learn but not to the degree you guys are likely at.

brazen eagle
#

computers can't do random very well

odd hare
#
import secrets

def password_generator(pass_len, char_set=string.printable.replace(string.whitespace, '')):
    password = ''.join(secrets.choice(char_set) for _ in range(pass_len))
    return password

#

By the way I am a noob so I looked up CSPRNG == Cryptographically secure random number generator?

pure flume
#

lol

fiery quarry
#

Hello, everyone
I'm using Python as the main language I use, I'm intermediate level in python
I've heard about Golang, It's worth it to learn Golang or should I keep using python

wraith latch
stray ledge
#

Heyooo , I need some help in my recon script.
I am trying to use censys for gathering IP of the domain.
The command i am using for censys is censys search ' services.tls.certificates.leaf_data.subject.common_name: "$domain"' --index-type hosts | jq -c '.[] | {ip: .ip}' > $ip/ip.txt

However, when i run my recon script, lets say recon.sh example.com i am getting a list of completely unrelated IP addresses.
Am I doing anything wrong here?

stoic badger
thick depot
#

i have a question, lets say i have a string in Java and i need to count the amount of data Types in the text( like "10 number 2.0" where there is 1 int, 1 string and 1 float) after the part that i separate the string by space, is there a way to get the value of the string?

magic falcon
#

Data types are not nested in the way you think.

#

This also sounds like a homework assignment

thick depot
#

is actually a job assignment i failed, trying to solve it in case i get the same question again

thick depot
#

i think i found a way

final juniper
thick depot
#

in case, if int and float fail

#

i have to be string

final juniper
thin lynx
#

anybody have bluestacks on their system here?

surreal bronze
#

Why?

ancient terrace
#

anyone here familiar with the ssl library

#

Python

dusty ore
wraith latch
placid ivy
#

guys, How can I make drawing visible while moving mouse in pyqt QGraphicsScene in python?

lilac holly
strange plover
wraith latch
wraith latch
# placid ivy guys, How can I make drawing visible while moving mouse in pyqt QGraphicsScene ...

Hi there, enter your question into google and you should see some results from StackOverflow
Give this one a shot, I hope that helps! https://stackoverflow.com/questions/73554372/how-can-i-make-drawing-visible-while-moving-mouse-in-pyqt-qgraphicsscene

placid ivy
wraith latch
#

At least we've gone full circle

rancid belfry
#

A noob question so I apologise in advance. I intend to learn a programming language for the first time. Is there any reason I shouldn’t choose Ruby over python? Obviously it’s subjective and there will be many based on the individual, but I want to hear your thoughts

abstract abyss
rancid belfry
abstract abyss
frosty cedar
#

IMHO you can use both python & ruby for webDev (the backend side of it), general automation this includes "PoC" / Exploit dev

#

just try both of them / go over the basic tutorials and try what is nicer / easier syntax for you - personally I cannot stand python

rancid belfry
#

Alright, thank you both

true pumice
magic falcon
# abstract abyss I'd say Python is one of the easiest first time programming languages. Just a pe...

I have to disagree with most of what you said here. Python and Ruby are both about the same "height", in terms of abstraction from native code.
Both run in a language specific VM environment, both support (somewhat OOP). Ruby is probably closer to natural language given the language syntax.
From my own experiences, Ruby runs noticably slower than equivalent python code, and Ruby devs have a surprising tendency to re-invent the wheel, notably the regex libs. As a security person, it's interesting to note that metasploit was written in Ruby.
Python is absolutely a ubiquitous, general purpose language in the linux world. Everything from daemon processes, web servers, data science, GUI apps get written in python.

abstract abyss
magic falcon
abstract abyss
rancid belfry
#

Python and then maybe I’ll jump in the deep end and learn rust

#

So many languages. It’s hard when you’re indecisive

#

I’ll start with python though

#

Probably best I start with a particular project in mind and then choose my languages I learn around that

magic falcon
#

If you are brand new to programming, having a project is a great idea. But it's very easy to pick a first project that is a lot more complicated than you are expecting. Codewars and Euler Project are both fantastic 'small' projects to use as learning assignments.

rancid belfry
#

I’ll check them out

surreal bronze
rancid belfry
#

That’s quite a list to work through. Cheers

drowsy pelican
# magic falcon That I'll agree with. The syntax for Ruby is very close to Visual Basic syntax, ...

Ruby syntax is not similar to Visual Basic... that is misleading. VB uses CamelCase everywhere, Ruby only uses CamelCase for class/module names; method names are snake_case and constants are SHOUT_CASE. VB requires parenthesis for function definitions, Ruby does not. VB functions end in End Sub, Ruby methods end in end which is four less characters to type. VB's version of null is called Nothing, Ruby calls it nil which is less to type. VB matches Regular Expressions using Regex.IsMatch(email, "..."), where Ruby has inline Regular Expressions email =~ /.../ which again is less to type. VB supports typed variable declarations, in Ruby you only declare the getter/setter methods and set the instance variable. Ruby can also often read like english or pseudo-code (ex: 5.times { puts "hello" }). There are also instances in Python where you have to type more stuff than Ruby (ex: re.compile("regex-here") vs /regex-here/ or self.foo vs just foo).

magic falcon
# drowsy pelican Ruby syntax is not similar to Visual Basic... that is misleading. VB uses CamelC...

I think that's fair to say the actual syntax may not be as close to VB as I remember; my experience with Ruby was pretty limited, and several years ago. Very close is an estimation from memory, and I remember it feeling like variable and function declaration being unnecessarily verbose just as in VB. Your comparison of usage of python's OOP implementation vs what looks like a language keyword wouldn't be a fair comparison either, though.

My primary pain point with ruby was the fluentD regex system, which is a pretty far departure from the POSIX-compliant and derived regex definitions I'm much more familiar with.

drowsy pelican
# magic falcon I think that's fair to say the actual syntax may not be as close to VB as I reme...

no it's not fair to say Ruby syntax is close to VB. I just listed multiple examples of how VB syntax is different from Ruby syntax that I found by doing a quick Google search of VB syntax. Don't rely on fuzzy memory when you can Google it. I also do not see why my comparison of Python syntax vs. Ruby syntax is "unfair". I think we can agree that there are instances in Ruby where one would type fewer characters than the equivalent code in Python.

Having worked in Ruby for 15 years, I have never used or heard of fluendD so I can't speak for it. I had to double check, but Ruby switched to the Oniguruma regexp engine in 1.9.0 (released back in 2007), which supports both POSIX and Perl-extended regex modifiers and can handle unicode encodings. Apparently Atom and TextMate editors also use it.

surreal bronze
#

Solved for anybody who saw that message and was wondering why I deleted it

solemn beacon
#

saw for 1 second

#

and don't know what it iskekw

surreal bronze
#

Lmao yeah it was just some issue with it not accepting """

covert stirrup
#

my express js site gets stuck on a loading screen for forever and im not sure how to fix it! any express js gods?

#

im in general as the code is far too much to send as a whole

true pumice
#

Have you checked the console for any errors

lavish vine
#

I am following this git repo to learn binex and I am at removing null bytes part(link points to that part itself).

I am trying to run exploit but I am getting segmentation fault no matter what I do.

`#include <string.h>

int main(int argc, char *argv[]){

char code[1024];

strncpy(code,argv[1],1024);
((void(*)(void)) code)();

}`
This above vulnerable code is same as author's .

`SECTION .text ; Code section
global _start ; Make label available to linker

_start: ; Standard ld entry point
jmp callback

dowork:
pop esi ; esi now holds address of "/bin/sh

xor     eax,eax     ; zero out eax
push    eax     ; args[1] - NULL
push    esi     ; args[0] - "/bin/sh"

xor edx,edx     ; Param #3 - NULL (zero out edx)
mov ecx,esp     ; Param #2 - address of args array
mov ebx,esi     ; Param #1 - "/bin/sh"
mov al,0xb      ; System call number for execve (use al mov)
int 0x80        ; Interrupt 80 hex - invoke system call


xor ebx,ebx     ; Exit code, 0 = normal
xor     eax,eax     ; zero eax
mov al,1        ; System call number for exit
int 0x80        ; Interrupt 80 hex - invoke system call

callback:
call dowork ; call pushes the next address onto stack,
; which is address of "/bin/sh"
db "/bin/sh",0 ;`
Above is my assembly code which is working perfectly.

I copied author's shellcode directly and used it as argument to my binary but I am receiving Segmentation fault. I compiled my binary with -fno-stack-protector -z execstackflags to be sure that my stack works but same segmentation fault.

#

In above assembly, the addresses of instructions are wrong initially and stay this way till I execute program once.

#

Exploit :
\xeb\x17\x5e\x31\xc0\x50\x56\x31\xd2\x89\xe1\x89\xf3\xb0\x0b\xcd\x80\x31\xdb\x31\xc0\xb0\x01\xcd\x80\xe8\xe4\xff\xff\xff\x2f\x62\x69\x6e\x2f\x73\x68

surreal bronze
#

I wonder, is there any way to make

class widget:
    def __init__(self, x, y, width, height, value) -> None:
        self.x = x
        self.y = y
        self.width = width
        self.height = height
        self.value = value

into something cleaner, without having to repeat each line?

#

Ah wait this would be better as a dataclass lmao

covert stirrup
#

my vscode server.js wont debubg? it just gets stuck at c:\program files\nodejs\node.exe

surreal bronze
verbal haven
#

Does wait() in bash wait only for the commands executed and backgrounded in the script?

lyric mirage
#

I think it waits for the background processes to be complete

verbal haven
upbeat sentinel
#
<script>
        $(document).ready(function () {
            $('button#send-url').click(function() {
                $.ajax({
                  url: '/user/upload',
                  data: "url="+$("input#url").val()+"&title="+$("input#title").val(),
                  type: 'POST',
                  success: function(data){
                    var answer = confirm("Are you sure that you want to upload this file?")
                    if (answer) {
                        $.ajax({
                            url: '/user/upload/save',
                            data: "file_name="+data["file_name"]+"&title="+data["title"]+"&uploaded_from=" + data["uploaded_from"] + "&role=user",
                            type: 'POST',
                            success: function(data){
                                location.reload(); 
                            }
                        });
                    }
                    else {
                        location.reload(); 
                    }
                  }
                });
            });
        });
    </script>
#

I got an upload form with a script like this and I reckon there can be some form of DOM-based XSS out of this but I'm not particularly sure how

onyx merlin
upbeat sentinel
onyx merlin
upbeat sentinel
onyx merlin
#

Zero reason for it to be a DM

upbeat sentinel
#

aight cool, I tried putting a javascript:alert(1) right below the $(document).ready(function () { line (I intercepted the response on burpsuite and added the code since its just there in the HTML) and it gave me an alert

upbeat sentinel
#

I can't do the #url since anything other than a URL simply doesn't get parsed

onyx merlin
upbeat sentinel
# onyx merlin Why do you think it's vulnerable?

I was assuming that because I was given an upload form with 2 textboxes to enter image URL and title each. I tried doing some form of format manipulation to get an executable to work but it won't work so my next guess was XSS because a script was given in the DOM

#

Would you like a link to the CTF? It'll make more sense that way

upbeat sentinel
#

I'm not asking you to do it for me

onyx merlin
#

We're not competing

upbeat sentinel
#

This isn't from THM to begin with

onyx merlin
upbeat sentinel
#

It's not even public

#

It's a private one

onyx merlin
#

Still.

upbeat sentinel
#

Forget it

#

Can't believe I'm getting this for trying to practice CTFs

brazen eagle
#

No, just that we do not help with active ctfs, nor coursework. Some companies use private ctfs for hiring (for example). We do not and can not know all the circumstances and helping with these can be considered cheating, and lead towards academic penalties or worse (in the case of coursework)

lament cargo
#

If you want to learn a CTF with help, use a retired one. It's really that simple. See if any of that can be used when tackling other old ones or active ones, etc.

desert quest
#

anybody is able to understand this code so please explain me

#

i am a beginner so i am not able to understand this javascript

rapid fulcrum
#

At a general level, it seems to manage the submit button of two forms - One for login, one for "forgot password".

In the bottom part, it seems to me it switches which form is shown to you: login as default, forgot password if you click the $(".forgot-pwd") element.

It seems to perform some sort of validation before actually posting the data.

What is your specific problem with the code?

desert quest
#

anyways thanks

true pumice
#

I'm deleting that, don't post code from your friend's website in a public discord @desert quest

sacred grail
#

Hi All . Can anyone help me out with a python socket code. I am not able to understand what "s.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1)" in the below code does exactly. I was looking into a simple python based backdoor(client and server). Below is the partial server code. I tried with the google results but didn't quite understand this line.

#!/usr/bin/python3

import socket
import sys
import os
import platform


server_addr = ""
server_port = 5555

s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1)

s.bind((server_addr,server_port))
s.listen(1)

connection, address = s.accept()
wraith latch
sacred grail
wraith latch
wraith latch
sick scarab
#

Is there a way in python when I have a large file (ex 500 lines) and in between each section of text, there is a * What i want to do is get each section before the * and write it a new file, then do this for the rest of the sections. Any ideas?

devout peak
#

its showing correct answers in Custom inputs but on submitting its saying all 8/8 wrong compiler wrong

onyx merlin
#

And remove your fucky spaces on your print statements in the string

#

It helps if you print what it tells you to, and nothing else.

devout peak
onyx merlin
#

All of them. Check what you're meant to print, and make sure they're exactly correct.

#

I'm not correcting your code for you

#

All your capitalization is wrong

#

A 'w' and a 'W' are not the same. Fix that

#

In future, ensure you follow the instructions very closely.

devout peak
onyx merlin
#

You're not listening so I'm going to stop trying to help you

devout peak
onyx merlin
#

You're ignoring what I'm saying...

surreal bronze
onyx merlin
#

You missed one Jayy

grave salmon
devout peak
#

but these are inside the print statement how its going to affect the main code ;-;

whhy am i so dumb not able to understand things

onyx merlin
#

@devout peak fwiw, it's very rude to ask for help and ignore it.
What you're printing is how the site is validating your output. Fix those problems. Show us what problems you're having.

grave salmon
#

that said, is this your full code?

devout peak
#

ooh alright then I am going to make corrections as you said then show it to you again back in some min

devout peak
fringe geyser
#

Hello, I would like to ask, where can I ask questions about career development in cyber sec?

grave salmon
devout peak
grave salmon
#

what errors are you getting

devout peak
grave salmon
#

screenshot?

devout peak
#

with random input

#

wgile submitting

onyx merlin
grave salmon
#

sounds to me like you got the wrong answers....

devout peak
# onyx merlin You did not fix the capitalisation!

now i understood now what i was doing wrong

i first printed for even instead i need to do it for odd and even condition lemme just show the code

import java.io.;
import java.math.
;
import java.security.;
import java.text.
;
import java.util.;
import java.util.concurrent.
;
import java.util.regex.*;

public class Solution {

private static final Scanner scanner = new Scanner(System.in);

public static void main(String[] args) {
    int N = scanner.nextInt();
    scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?");
    
    if(N%2==1)
        System.out.println("Weird");
    else
        {
        if(N>=2&&N<=5)
            System.out.println("Not Weird");
        else if(N<=20)
            System.out.println("Weird");
            else
            System.out.println("Not Weird");
        }    

    scanner.close();
}

}

onyx merlin
#

And the capitalisation...

devout peak
surreal bronze
grave salmon
chilly island
#

Hey guys sorry if this is the wrong channel, buy what are some good book/textbooks to learn python wrt pentesting and cybersecurity for beginners, although I know some basics of python it would be cherry on the top if it covered that, I am not looking for books which are heavy on theory but have a fair amount of practicals wrt to cybersecurity

Sorry for being picky and asking for a lot of things, it's just that I'm cramming a lot of things for my university exams adding additional theory load to it would be disastrous for me.

magic falcon
#

If you want to learn programming but don't want to learn theory, now is not a good time to learn programming.

chilly island
magic falcon
#

Focus on your exams, programming will be there when you finish

chilly island
#

Thanks

clear lodge
#

uuugh worst kind of bug, inconsistent behaviour

#

is it cache? there's no way its cache. its cache

stoic badger
#

I remember learning Docker for an internship and caching killed me in the beginning when trying to test small modifications in the dockerfile

clear lodge
#

heheh

boreal mason
#

Hi

#

or Hello, World!

midnight marsh
brazen eagle
magic falcon
brazen eagle
placid ivy
#

I get this error when I try using pyinstaller in linux
ImportError : No moudle names _bootlocal
even if I use
--exclude-module _bootlocale
I get another error AttributeError: 'NoneType' object has no attribute 'groups'

this is the command I use
pyinstaller --onefile script.py
is there any way to solve this issue ?

true pumice
placid ivy
true pumice
#

Have you pasted the error into google

inland hazel
#

really??? file pyinstaller tells you what???

dim sierra
midnight marsh
wispy kestrelBOT
#

Gave +1 Rep to @dim sierra

solemn beacon
#

I have some question about Python socket. I am trying to brute force date input to python application which can access through nc $IP $Port. I am able to receive the respond but when I try to use s.send('11/11/1111'), I can't get any respond after inputting this. Am I wrong at the sending step or what can I do to receive the response after I input.

lilac holly
#

I need help with this code

#

Im trying to make a bruteforce ssh

#

but the problem is only in this function

#

everything else works fine

#

this is the output

true pumice
#

It’s pretty obvious, no?

lilac holly
#

yeah authentication failed

#

but

#

I want it to continue

true pumice
#

No

#

It’s not saying that

#

Read the error below it

#

It’s saying that during the handling of an exception

onyx merlin
lilac holly
#

just the module

#

that Im using

#

the expections are different

onyx merlin
#

Do you?
Authentication failure looks like an error you should obviously handle if you're expecting failed authentications

onyx merlin
lilac holly
#

changed it to this

#

paramiko is not defined

#

I don't really know how to fix the paramiko is defined

rapid plank
#

Uh try learning python then

#

@lilac holly

#

Did you import it

lilac holly
#

yes

onyx merlin
rapid plank
#

Srry

lilac holly
#

show me your github?

#

didnt think so

rapid plank
#

?

onyx merlin
#

Please don't escalate it

rapid plank
#

What did i do. He asked for my github

#

Its in my discord profile btw

onyx merlin
#

It wasn't in good faith, best to just leave it.

rapid plank
#

Is there a possibility of you using a wildcard import (from paramiko import *)

onyx merlin
#

They clearly don't want help anyway

rapid plank
#

alright

gusty haven
#

well this was an interesting read ill just give him a quick hint and hope this was all a one off

gusty haven
# lilac holly you know python better then me?

diaralb i recommend reading your errors more closely, ive isolated the section that you should pay attention to for this error

not the wording

while handling an exception another one occured

so basically the issue may be with the handling of the first one but before we can address that we must address the exception causing issue with the first exception handling

it says that BadHostKeyException is not defined

i would recommend taking a peek at line 50 and see whats going on there

#

judging by your later attempts at corrections im going to guess its an issue with how you are importing things

#

may i recommend trying to explicitly import things like
from paramiko import BadHostKeyException

magic blade
#

hi guys

#

im new to programming

#

so i'm wondering if someone can help me out here

#

so i have this assignment

#

why cant i send pictures

stoic badger
#

Getting outside help like this for a class assignment, more often then not, is cheating

magic blade
#

no its not like that

#

my code isnt running

earnest swallow
magic blade
#

nvm it worked!

#

thank you guys

#

idk

#

i just did the exact same thing twice

#

the second or third time it just randomly worked

earnest swallow
#

u gotta know it to avoid it next time

#

good luck!

magic blade
#

thank you!

#

i was supposed to be in a normal cs class but my professor cancelled so now i have to do it asynchronous

#

no classes or stuff

#

its kind of hard

spare swan
wraith latch
clear lodge
#
.primary-nav-list > li:not(:last-child).selected:hover::after {}

potentially the shittiest selector I ever wrote