Anonymous
Hey
Afees
int main() { SSHBrute conn("localhost"); //read ip as an argument vector<string> username = readFile("username.txt"); //give realtime username input instead of reading from file vector<string> password = readFile("password.txt"); // provide an excrypted list of password and use a decrypting algorithm and return the list for (int i = 0; i < username.size(); i++) { conn.setUser(username[i]); conn.connect(password); } return 0;
Anonymous
thank you for your input. host IP and username.txt will be passed as command line argument (that is in my todo list)
Anonymous
and this is a password cracker, i don't see why my password list should be encrypted
Francisco
Francisco
And if it isn't installed in your distribution by default, there surely is a package to install it
Francisco
Also, you can use conan, which supports boost
Ибраги́м
I know
Ибраги́м
I'm just conflated about Distros having it by default thing
Ибраги́м
Ubuntu comes with it, for example
how do we say this in Chinese, NOT INSTALLED!
klimi
Emacs
Badugar
Vim, i like it
I_Interface
Visual studio 2019
klimi
Vim, i like it
I think everyone of use use the editor we like... Why would we be using it if we don't like it
桃桃乌龙
If you guys want to contribute, here is a list of things I want to implement Logging Argument Parser Multithreading This is not an exclusive list.
actually you don’t need multithreading, you can manage multiple connections in a single thread via various techniques
Badugar
Same argument could be applied to any other editor. (Vim is a text editor, not an IDE)
Anonymous
I used vim + tmux, it will give you an ideal IDE experience
Badugar
I think everyone of use use the editor we like... Why would we be using it if we don't like it
Some use nano or gedit because they're really simple to use ¯\_(ツ)_/¯
Anonymous
basically, non-blocking sockets
can you share a link or something for further reading.
Anonymous
Visual Studio code
DaVlad 🇸🇰
桃桃乌龙
DaVlad 🇸🇰
Not IDE
Anonymous
Can write python too
Badugar
Oh boy.
Anonymous
😂
klimi
You asked for editor
桃桃乌龙
I thought atom is too slow
klimi
Not IDE
We are talking about editor
Badugar
I thought atom is too slow
Atom is the small brother of Chrome and Android Studio
Anonymous
Vscode is very beautiful
klimi
Right I'm defending you lol
klimi
#ot
Badugar
To each one their editor/IDE/whatever. 😏 Also these editor/IDE-wars are honestly a waste of time. Vim has C-syntax- and keyword-highlighting, helps me quite much.
Badugar
Enough OT .. does somebody have experience with cross-compiling with Clang ?
Ludovic 'Archivist'
What was your question?
Anonymous
/notes
/notes
Anonymous
/get learn
Anonymous
/get howtoprogram
Tushar
How to initialize a string
Tushar
/get cbook
Tushar
/get freeprogrammingbooks
klimi
How to initialize a string
std::string a = "";
Tushar
simple syntax using char
I_Interface
std::string a = "";
const string is better
klimi
const string is better
Its constant....
klimi
Why is that better?
I_Interface
Why is that better?
faster creating an object
klimi
faster creating an object
But for what use is an empty string?
I_Interface
But for what use is an empty string?
ah, sry, didn't notice)
klimi
simple syntax using char
char a = '';
Jussi
char a = '';
this is not a string though
klimi
this is not a string though
Does he want a string?
klimi
He said char now...
Jussi
he asked for it
Jussi
well :D
Jussi
I think he is looking for char* a;
klimi
he asked for it
He asked for a string and then char
klimi
I think he is looking for char* a;
String using chars... Okay.... That would be the answer
Tushar
I am not asking for pointer
Tushar
char a = '';
I am asking for something like this ... but this is not correct
Jussi
What do you need then?
I_Interface
Jussi
I think you are super lost
klimi
Not sure if this is how I put pointer
klimi
I am asking for something like this ... but this is not correct
Oh buffer Char a[10] ="asbasbasba";
klimi
Oh buffer Char a[10] ="asbasbasba";
But this is actually a pointer too
Tushar
But this isn't working with struct
klimi
Yeah this
Here you go