Share your repls and programming experiences

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

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 :(

Comments
hotnewtop
amaddentcsec (234)

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

Dominicl645 (429)

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

amaddentcsec (234)

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

amaddentcsec (234)

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

Dominicl645 (429)

lol message spam time for both of us. @amaddentcsec

Dominicl645 (429)

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 (234)

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

amaddentcsec (234)

@Bookie0
DANG IT ANOTHER PERSON CRASHED THE MESSAGE DATABASE

CoolGuy27 (68)

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

amaddentcsec (234)

@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 (68)

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

amaddentcsec (234)

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

retronbv (128)

@amaddentcsec make it filter out symbols then

amaddentcsec (234)

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

AmazingMech2418 (1043)


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

AmazingMech2418 (1043)

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

AmazingMech2418 (1043)

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

AmazingMech2418 (1043)

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

amaddentcsec (234)

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

AmazingMech2418 (1043)

@amaddentcsec You can just delete the key. LOL!

amaddentcsec (234)

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

AmazingMech2418 (1043)

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

AmazingMech2418 (1043)

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

AmazingMech2418 (1043)

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

DavidShen2 (60)

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

Muhammad_SJC (148)

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 (234)

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

ironblockhd (425)

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

ironblockhd (425)

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

AmazingMech2418 (1043)


That's a weird username...

amaddentcsec (234)

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

AmazingMech2418 (1043)

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

amaddentcsec (234)

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

AmazingMech2418 (1043)

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

ImplodingBug (5)

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

amaddentcsec (234)

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

ImplodingBug (5)

@ImplodingBug Alos, beware Java Injection.

amaddentcsec (234)

@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 (234)

@ImplodingBug
pls no i have enough to deal with already

Muffinlavania (1514)


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

this is rigged

RohilPatel (1534)

Did you know you can be very social with Java?

ThunderPython (37)

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 (234)

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

ThunderPython (37)

Its ok just think about it again @amaddentcsec

ThunderPython (37)

Its ok just think about it again @amaddentcsec

RileyBillingha (1)

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

HackermonDev (2012)

You shared your repl.it database url. https://kv.repl.it/v0/eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MDIzMDE5OTcsImlhdCI6MTYwMjE5MDM5NywiaXNzIjoiY29ubWFuIiwiZGF0YWJhc2VfaWQiOiI5ZDg1ZDYwNC0wNTBkLTRhZGQtYTAyOS0xNTRjNGE4NWY0YjUifQ.hgGoEZMXPOI1XeSCEnaKeyP-BI4oLGdQioaF7ln_6fQDRRPlIfRBVShY1u2o5nUUZoZwP56dfywPmN7-YoLmIw Anyone can see the password and username for all the accounts.

amaddentcsec (234)

@PDanielY
I know, but i cant put it in a .env file or the program doesnt work :(

amaddentcsec (234)

@PDanielY
remember to upvote if u like the program!

theangryepicbanana (1694)

@amaddentcsec You're supposed to access it as an environment variable

amaddentcsec (234)

@theangryepicbanana
How?
System.getenv returns null if the person using the program is not me

amaddentcsec (234)

@theangryepicbanana
Also, whats your JavaSocial username? i want to message you

theangryepicbanana (1694)

@amaddentcsec I haven't tried it yet. I was looking at a report when I saw this in the comments

amaddentcsec (234)

@theangryepicbanana
You should definetely try it! There's tons of users you can message!

amaddentcsec (234)

@theangryepicbanana
My username on JavaSocial is Owner

theangryepicbanana (1694)

@amaddentcsec Maybe once I get the time. I've been busy with school lately, so ye

ironblockhd (425)

@amaddentcsec you could make it into 2 repls, one repl is a database server the second one accesses it

HackermonDev (2012)

@ironblockhd but then like if someone wanted to access the database can't they just ask the database server for it?

ironblockhd (425)

@PDanielY he could make it so the client can only request certain actions like creating an account, check if the password is correct etc

NoNameByProgram (198)


def not copy and paste

amaddentcsec (234)

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

EpicGamer007 (1609)

@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 (198)

@EpicGamer007 there's this thing called irony

EpicGamer007 (1609)

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

SwaroopBappanad (243)

@EpicGamer007 What happened to your other account?

EpicGamer007 (1609)

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

codeitfast (56)

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

amaddentcsec (234)

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

amaddentcsec (234)

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

amaddentcsec (234)

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

codeitfast (56)

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

DynamicSquid (4634)

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 (234)

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

tankerguy1917 (174)

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

amaddentcsec (234)

@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 (174)

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

EpicGamer007 (1609)

@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 (29)

The admin password is "adminPassword".

amaddentcsec (234)

@NoahJospeh
thats not how system.getenv works

NoahJospeh (29)

@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 (9)

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 (9)

@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 (234)

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

Srikar2008 (3)

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 (234)

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

amaddentcsec (234)

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

Srikar2008 (3)

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

Srikar2008 (3)

@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 (234)

@Srikar2008
right after you joined a hacker hacked the database

amaddentcsec (234)

@Srikar2008
everyones account got deleted

amaddentcsec (234)

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

lightningrock (148)

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

AncientBison (67)

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

RyanGardiner1 (139)

Whoever hacked needs to goto heck

AmazingMech2418 (1043)

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

tankerguy1917 (174)

who keeps hacking this. you should be ashamed with yourself

AmazingMech2418 (1043)

@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 (174)

@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.