Share your repls and programming experiences

← Back to all posts
JavaSocial - Social media system!!!
h
amaddentcsec (186)

Thank you to:

@AbhayBhat otherwise known as @EpicGamer007 for the amazing database!!!
@Coder100 for showing me how to add multiple databases!

Notes:

I will be under the username Owner. Spaces get transformed into dashes when a message gets sent.

BIG NOTE - YOU CANNOT OPEN THIS REPL IN A NEW TAB

BIG NOTE - YOU CANNOT USE ANY SYMBOLS IN YOUR MESSAGES, USERNAMES, AND PASSWORDS EXCEPT ! and ?, DO NOT USE BACKSLASHES, PLUS SIGNS, ASTERISKS, or { } and ( ). AND PLEASE DO NOT USE QUOTATION MARKS!!

Have fun, I hope you like it!

Upvotes appreciated

Make sure to comment lol

HUGE NOTE: THIS PROJECT HAS BEEN HACKED BY ONE TOO MANY PEOPLE I HAVE GIVEN UP - This project is now BROKEN and it WILL NOT work :(

Commentshotnewtop
amaddentcsec (186)

@Bookie0
DANG IT ANOTHER PERSON CRASHED THE MESSAGE DATABASE

CoolGuy27 (31)

@amaddentcsec ummmm... It's working perfectly!

amaddentcsec (186)

@CoolGuy27
im sorry, but a TON of people hacked the project :(
its all broken now and i cant fix it right now i will message you when i fix it at some point

CoolGuy27 (31)

@amaddentcsec Ok i'll learn java and fix it. (lol I know C#) Come on hackers, be ethical and good like me

amaddentcsec (186)

@CoolGuy27 someone put symbols in their message EVEN THOUGH I TOLD THEM NOT TOO :(

retronbv (99)

@amaddentcsec make it filter out symbols then

amaddentcsec (186)

@retronbv
I tried that dude! It for some reason gives an error bruh

AmazingMech2418 (910)


When you hack this because you made the DB URLs public... LOL!

AmazingMech2418 (910)

@AmazingMech2418 Just hash the passwords please... LOL!

AmazingMech2418 (910)

@amaddentcsec You're the one who made a public DB with the keys the passwords and the values the usernames. LOL!

AmazingMech2418 (910)

@amaddentcsec Hey, at least I only deleted my own account. LOL!

amaddentcsec (186)

@AmazingMech2418
I LITERALLY TOLD PEOPLE IN THE POST TO NOT USE SYMBOLS

AmazingMech2418 (910)

@amaddentcsec You can just delete the key. LOL!

amaddentcsec (186)

@AmazingMech2418
How? i dont know what the key is?

AmazingMech2418 (910)

@amaddentcsec Actually, you can't delete the keys. Sorry! I was just testing if you sanitized your input. LOL!

AmazingMech2418 (910)

@amaddentcsec Just look it up in the DB. LOL! NoThereIsNot{}""+

AmazingMech2418 (910)

@amaddentcsec I'm planning on making my own (more secure) version of this soon. LOL!

DavidShen2 (55)

@AmazingMech2418 @amaddentcsec I used jasypt to hash for one of my java projects. http://www.jasypt.org/#

AmazingMech2418 (910)


That's a weird username...

amaddentcsec (186)

@AmazingMech2418
sorry, the username database has to be refreshed again

AmazingMech2418 (910)

@amaddentcsec Can't you just use the environment variables?

amaddentcsec (186)

@AmazingMech2418
i tried that, it didnt work. For some reason the java System.getenv returns null when the user is not me

AmazingMech2418 (910)

@amaddentcsec It's a Bash environment variable. LOL!

ImplodingBug (5)

Why can't I open it in a new tab?

amaddentcsec (186)

@ImplodingBug
The java http request module doesnt work in repl.run links

ImplodingBug (5)

@ImplodingBug Alos, beware Java Injection.

amaddentcsec (186)

@ImplodingBug
AS I SAID in the post, you CANNOT use symbols like quotation marks and ( ) in the message!

ImplodingBug (5)

@amaddentcsec Some one is going to trigger an obscure bug with Unicode and bug out the text.

amaddentcsec (186)

@ImplodingBug
pls no i have enough to deal with already

Muffinlavania (1220)


Impossible.There must be a bug, it cannot be. Unless....

this is rigged

RohilPatel (1243)

Did you know you can be very social with Java?

amaddentcsec (186)

@dominicl645
Thanks for the 30th upvote!!! Message me at Owner on JavaSocial and i will message you back!

dominicl645 (30)

okkkk :) your welcome too. you earned it @amaddentcsec

amaddentcsec (186)

@dominicl645
YAY I GOT YOUR MESSAGE!! I WILL MESSAGE U BACK!

amaddentcsec (186)

@dominicl645
There used to be like 30 people in the database but it got wiped so :(

dominicl645 (30)

i sent you more messages. @amaddentcsec

dominicl645 (30)

lol message spam time for both of us. @amaddentcsec

dominicl645 (30)

is there a limit for the messages that can show up on screen? if not then idk why i am not getting anything. @amaddentcsec

amaddentcsec (186)

@dominicl645
I'm not messaging you lol im kinda busy at the moment xd!

Muhammad_SJC (22)

This is good, but it is not realtime and the database seems to reset every time I run it. I think it would be better if you use Firebase realtime database. Check out my chat app which uses Firebase: https://repl.it/@Muhammad_SJC/Chat#index.html

Hope you like it and take inspiration! :)

amaddentcsec (186)

@Muhammad_SJC
What do you mean "realtime", and what do you mean the database resets?

ironblockhd (370)

@amaddentcsec replit database urls expire after a day and 7 hours, you need to add a new url

ironblockhd (370)

@amaddentcsec if you want to see how long it takes to expire you also can use my database GUI: https://databasemanager.ironblockhd.repl.co/

ThunderPython (23)

It was really good @amaddentcsec. I'm hosting an unofficial jam so if you want you can participate. All information in the link--
https://repl.it/talk/share/HELLO-RELPERS/55241

amaddentcsec (186)

@ThunderPython
Dude thanks! I don't think I will have time for a jam though im busy with JavaSocial right now :D

ThunderPython (23)

Its ok just think about it again @amaddentcsec

ThunderPython (23)

Its ok just think about it again @amaddentcsec

RileyBillingha (1)

log into anyones account with there account username and just type "password"

NoNameByProgram (111)


def not copy and paste

amaddentcsec (186)

@NoNameByProgram
I used @AbhayBhat 's ReplDBManager database helper as i said in the thank you in the post.

EpicGamer007 (591)

@NoNameByProgram , i am totally ok with this. i made it for other people to use, his repls for some reason use java 8 and you need java 11 for my manager to work, to get around this, he forks it, and he also leaves the readme file

NoNameByProgram (111)

@EpicGamer007 there's this thing called irony

EpicGamer007 (591)

@NoNameByProgram , listen i am dumb, i would not get your irony

SwaroopBappanad (40)

@EpicGamer007 What happened to your other account?

EpicGamer007 (591)

@SwaroopBappanad , i renamed myself, i used to be @AbhayBhat but i used repl cli and changed it to this.

codeitfast (44)

Cool! I feel like you should make this in PHP as well.

amaddentcsec (186)

@codeitfast
wahts php? also, once you make an account message me at Owner

amaddentcsec (186)

@codeitfast
Ok but pls message me at Owner in the program i need to test if messaging still works

amaddentcsec (186)

@codeitfast
I messaged you back lol! check in the program!

codeitfast (44)

@amaddentcsec lol I forgot the password I used and I can't get in.

DynamicSquid (3609)

EVERYONE LISTEN UP

Okay, I tried to create an account with the password password but I that is already taken! Please explain this to me I do not understand

Edit: Okay do not worry guys I changed my password to password123 and it works now thank you

amaddentcsec (186)

@DynamicSquid
Someone must have already used the password password as their password sorry! Also, message me at Owner when you make an account

tankerguy1917 (37)

hey. i think that somethings wrong. it wont let me check my messages

amaddentcsec (186)

@tankerguy1917
The message database is broken, someone put quotation marks in their message i will fix it when i get back in two hours!

tankerguy1917 (37)

@amaddentcsec ok. by the way nice job. this is cool

EpicGamer007 (591)

@tankerguy1917 , i think it was a problem with my ReplDBManager, i did not change " to \" so it caused an error, i fixed it now

NoahJospeh (9)

The admin password is "adminPassword".

amaddentcsec (186)

@NoahJospeh
thats not how system.getenv works

NoahJospeh (9)

@amaddentcsec I know, it won't work because I'm not you, but it's still awesome, you should try and code this into the GUI

WilliamRoss6 (6)

Cool but how do I send a message to someone not on the people I can send a message to list. Also I was the 11th upvote and that makes me sad.

WilliamRoss6 (6)

@amaddentcsec Because getting the 10th or under upvoted is cool because you're one of the first. I just missed it so its more sad than it would be if the post had like 30 upvotes. Also you didn't answer my question.

amaddentcsec (186)

@WilliamRoss6
Oh yeah, the "people you can send message to" list has EVERYONE that has made an account.

Srikar2008 (2)

Wow, good job! I like this, it's really cool.
Plus, I haven't seen that many Java repls on repl.it, so nice

amaddentcsec (186)

@Srikar2008
What is your username on the site? i want to send you a message

amaddentcsec (186)

@Srikar2008
Also, make sure you upvote if you like the project :D

Srikar2008 (2)

@amaddentcsec oof I forgot my username, lemme make a new account (sry)

amaddentcsec (186)

@Srikar2008
Ok i sent you a message lol

Srikar2008 (2)

@amaddentcsec uhh for some reason it won't let me acces my account, even though I registered. It says that the username is not in the database.

amaddentcsec (186)

@Srikar2008
right after you joined a hacker hacked the database

amaddentcsec (186)

@Srikar2008
everyones account got deleted

amaddentcsec (186)

@lightningrock
Thanks for the upvote! I replied to you!

lightningrock (119)

also, you can send a message to yourself, u should remove that. @amaddentcsec

AncientBison (65)

@lightningrock i dont think so saying in gmail you can do that

RyanGardiner1 (1)

Whoever hacked needs to goto heck

AmazingMech2418 (910)

Just make a new server and include URLEncoder.encode and URLDecoder.decode.

tankerguy1917 (37)

who keeps hacking this. you should be ashamed with yourself

AmazingMech2418 (910)

@tankerguy1917 I only hacked it once and I was just trying to see if there was code sanitation. LOL! I had no intention of taking down the database.

tankerguy1917 (37)

@AmazingMech2418 i said that to anyone who was doing it to mess things up. if anyone was trying to help, then im sorry, that wasnt directed to you.

damiascripting (0)

Hey @amaddentcsec Can I Try To Fix Your Project?

JBYT27 (178)

OOF Is there anything you can do? @amaddentcsec

AmazingMech2418 (910)

@JBYT27 Make a new DB, but that's it. Turns out that since URL encoding wasn't used, you can't delete the keys... :/