Share your repls and programming experiences

← Back to all posts
JavaSocial - Social media system!!!
plscodeinjava

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

Voters
DepthStrider
Keztone
TylerArmstrong2
sanjiith
CoolGuy27
Code1Tech
AphixDev
DANIELLEDELOIR
FenwayPowers
SelenaYang1
Comments
hotnewtop
Dominicl645

this is cool.

plscodeinjava

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

Dominicl645

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

plscodeinjava

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

Dominicl645

i did message u tho. @amaddentcsec

plscodeinjava

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

Dominicl645

i sent you more messages. @amaddentcsec

plscodeinjava

@dominicl645
ye i sent you messages too

Dominicl645

lol message spam time for both of us. @amaddentcsec

Dominicl645

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

plscodeinjava

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

Dominicl645
Bookie0

eh?

plscodeinjava

@Bookie0
DANG IT ANOTHER PERSON CRASHED THE MESSAGE DATABASE

Bookie0
plscodeinjava

@Bookie0
ok its fixed now

CoolGuy27

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

plscodeinjava

@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

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

Bookie0
plscodeinjava

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

retronbv

@amaddentcsec make it filter out symbols then

plscodeinjava

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

retronbv

@amaddentcsec sry didnt know

Rayan81

Lol

plscodeinjava
Rayan81

Lol to you [email protected]

codeitfast
AmazingMech2418


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

AmazingMech2418
AmazingMech2418

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

plscodeinjava
AmazingMech2418

@amaddentcsec Also, remember to sanitize!

AmazingMech2418

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

AmazingMech2418

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

plscodeinjava

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

plscodeinjava

@AmazingMech2418
NOW I NEED A NEW DATABASE

AmazingMech2418

@amaddentcsec You can just delete the key. LOL!

plscodeinjava

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

AmazingMech2418

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

AmazingMech2418

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

AmazingMech2418

@amaddentcsec Can you fix it?

AmazingMech2418

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

plscodeinjava

@AmazingMech2418
at least give credit to me

AmazingMech2418

@amaddentcsec I will. LOL!

DavidShen2

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

AmazingMech2418

@DavidShen2 I'd just use SHA256...

Muhammad_SJC

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! :)

plscodeinjava

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

ironblockhd

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

ironblockhd
plscodeinjava
ironblockhd

@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


That's a weird username...

plscodeinjava

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

plscodeinjava

@AmazingMech2418
ill do it now

AmazingMech2418

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

plscodeinjava

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

AmazingMech2418

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

plscodeinjava

@AmazingMech2418
umm whats bash?

ImplodingBug

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

plscodeinjava

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

ImplodingBug

@amaddentcsec Oh, OK.

plscodeinjava

@ImplodingBug
Try messaging me at Owner!

ImplodingBug

@ImplodingBug Alos, beware Java Injection.

plscodeinjava

@ImplodingBug
WAIT DID YOU DO THAT?

plscodeinjava

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

ImplodingBug

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

plscodeinjava

@ImplodingBug
pls no i have enough to deal with already

PrestonLau

sorry bro

plscodeinjava

@PrestonLau
why are you sorry?

ArvindRaghu

Hello

plscodeinjava
Muffinlavania


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

this is rigged

RohilPatel

Did you know you can be very social with Java?

plscodeinjava

@RohilPatel
... if that was supposed to be a joke xD

RohilPatel

Yeah lol it was @amaddentcsec

plscodeinjava

@RohilPatel
Did you like the program?

RohilPatel

Yessir! @amaddentcsec

LobbyBotCool

c:

plscodeinjava
ThunderPython

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

plscodeinjava

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

ThunderPython

Its ok just think about it again @amaddentcsec

ThunderPython

Its ok just think about it again @amaddentcsec

RileyBillingha

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

plscodeinjava

@RileyBillingha
wtf how does this work???

HackermonDev

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.

plscodeinjava

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

plscodeinjava

@PDanielY
remember to upvote if u like the program!

theangryepicbanana

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

plscodeinjava

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

theangryepicbanana
plscodeinjava

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

theangryepicbanana

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

plscodeinjava

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

plscodeinjava

@theangryepicbanana
My username on JavaSocial is Owner

theangryepicbanana

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

plscodeinjava
ironblockhd

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

HackermonDev

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

ironblockhd

@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


def not copy and paste

plscodeinjava
NoNameByProgram

@amaddentcsec made by someonepinged

plscodeinjava

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

NoNameByProgram
EpicGamer007

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

@EpicGamer007 there's this thing called irony

EpicGamer007

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

Leroy01010
SwaroopBappanad

@EpicGamer007 What happened to your other account?

EpicGamer007

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

SwaroopBappanad

@EpicGamer007 oh ok lol.

codeitfast

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

plscodeinjava

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

codeitfast

@amaddentcsec PHP is an add-on to HTML that works with a server. https://repl.it/@codeitfast/spindl#chat.txt

plscodeinjava

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

plscodeinjava

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

codeitfast

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

DynamicSquid

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

plscodeinjava

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

Coder100

yay nice

Kookiez

wow, cool!

plscodeinjava

@OrangeJooce123
Yo dude thanks!

tankerguy1917

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

plscodeinjava

@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

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

EpicGamer007

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

plscodeinjava
plscodeinjava

@EpicGamer007
Yay its fixed!

EpicGamer007
TheMaster7661

The admin password is "adminPassword".

plscodeinjava

@NoahJospeh
wrong lol

plscodeinjava

@NoahJospeh
thats not how system.getenv works

TheMaster7661

@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

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.

plscodeinjava

@WilliamRoss6
Why are you sad?

WilliamRoss6

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

plscodeinjava

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

Srikar2008

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

plscodeinjava

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

plscodeinjava

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

Srikar2008

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

Srikar2008

@Srikar2008 here, its srikar2008

plscodeinjava

@Srikar2008
Ok i sent you a message lol

Srikar2008

@amaddentcsec Yep I did

Srikar2008

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

plscodeinjava

@Srikar2008
right after you joined a hacker hacked the database

plscodeinjava

@Srikar2008
everyones account got deleted

plscodeinjava

@Srikar2008
i dont know who it was

Srikar2008
Srikar2008

@Srikar2008 u serious?

plscodeinjava
CodingGoose

This is great

plscodeinjava

@DannyIsCoding
Dude thanks!!!

CodingGoose
plscodeinjava

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

lightningrock

np its rly good @amaddentcsec

lightningrock

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

AncientBison

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

plscodeinjava

@AncientBison
Yes, thanks for responding!

dudeactualdev

Whoever hacked needs to goto heck

AmazingMech2418

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

tankerguy1917

who keeps hacking this. you should be ashamed with yourself

AmazingMech2418

@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

@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

Hey @amaddentcsec Can I Try To Fix Your Project?

plscodeinjava