Valhalla Legends Forums Archive | Battle.net Bot Development | How To: Beat the Censor

AuthorMessageTime
Barabajagal
Since everyone thought my last how to was useless, here's a more useless one. How to beat the BNet public channel censor:

[code]Public Function DeCensor(ByVal strMessage As String) As String
Dim Caps As Boolean
    If strMessage = UCase$(strMessage) Then Caps = True
    If strMessage = LCase$(strMessage) Then Caps = False
    strMessage = Replace$(strMessage, "!&$%@", "pussy")
    strMessage = Replace$(strMessage, "!&$%", "fuck")
    strMessage = Replace$(strMessage, "$!@%", "shit")
    strMessage = Replace$(strMessage, "@$%!@%&", "asshole")
    strMessage = Replace$(strMessage, "@$%!@!&", "asswipe")
    strMessage = Replace$(strMessage, "$%$", "kkk")
    strMessage = Replace$(strMessage, "#@%$!", "bitch")
    strMessage = Replace$(strMessage, "!@!#&", "whore")
    strMessage = Replace$(strMessage, "!@!@%&", "nipple")
    strMessage = Replace$(strMessage, "!&!@$", "penis")
    strMessage = Replace$(strMessage, "$!$%", "cock")
    strMessage = Replace$(strMessage, "!@!@&#", "nigger")
    strMessage = Replace$(strMessage, "!@!@#", "nigga")
    strMessage = Replace$(strMessage, "$%&%", "slut")
    strMessage = Replace$(strMessage, "!@!@!@", "vagina")
    strMessage = Replace$(strMessage, "$&!%", "cunt")
    strMessage = Replace$(strMessage, "$%@%", "clit")
    strMessage = Replace$(strMessage, "&#&$%", "erect")
    strMessage = Replace$(strMessage, "%@$%", "dick")
    strMessage = Replace$(strMessage, "!#!@$&", "orgasm")
    strMessage = Replace$(strMessage, "$!@!$", "chink")
    strMessage = Replace$(strMessage, "!@!$", "gook")
    strMessage = Replace$(strMessage, "&@$%&#$@%", "masturbat")
    strMessage = Replace$(strMessage, "!@!@!%", "faggot")
    strMessage = Replace$(strMessage, "$%&!", "klux")
    strMessage = Replace$(strMessage, "$@$&", "kyke")
    strMessage = Replace$(strMessage, "%&$#@#!", "lesbian")
    strMessage = Replace$(strMessage, "%@%&!", "dildo")
    If Caps Then
        DeCensor = UCase$(strMessage)
    Else
        DeCensor = strMessage
    End If
End Function[/code]
November 2, 2007, 12:42 AM
Yegg
Correct me if I'm wrong, but hasn't this been done a million times before? I think I even remember seeing this in VaporBot source.
November 2, 2007, 12:49 AM
Barabajagal
Quite possibly. I went through and found them all myself manually, though (didn't have asswipe for two years, either! Didn't realize it was censored cause nobody says it). Also, the way I detect caps could probably improved by using a method other than replace and detecting what the case of the letters around the censored word are.
November 2, 2007, 1:01 AM
Barabajagal
Apparently an alternate spelling of Kike. They both become the same censor.
November 2, 2007, 2:25 AM
Barabajagal
It's pretty much an obscure slander word for a Jew.
November 2, 2007, 2:50 AM
iNsaNe
why don't u just set strMessage to upper or lower so you avoid case sensitivity all together?

--edit:

lol @ nipple censor
November 2, 2007, 2:55 AM
Yegg
Looking through the list, I noticed that "erect" is a censored word... lol.
November 2, 2007, 3:02 AM
Barabajagal
uh... you mean set all incoming messages to lowercase always? That's not correct emulation at all, now is it?

And ya, Erect is stupid, and so is Dick and Cock. Every time I try to play Led Zeppelin's Moby Dick,  I get Moby %@$%. And poor Joe Cocker and Bruce Cockburn both get defaced :(
November 2, 2007, 5:31 AM
DDA-TriCk-E
Haha @ Moby Dick, good little function I suppose, could be a nice feature.. :)
November 2, 2007, 5:34 AM
iNsaNe
[quote author=Hands of a Government Man link=topic=17141.msg174450#msg174450 date=1193981483]
uh... you mean set all incoming messages to lowercase always? That's not correct emulation at all, now is it?
[/quote]

no you interpreted it wrong, set the variable to lowercase to avoid case sensitivty in the function when comparing the 2 strings. you would need 2 different variables

the way his function is written is  ???

edit:

now that i think of it, the best way (i can think of) is to split strMessage by the space character. After doing so, loop through each dimension of the array. If the current dimension (in upper or lower case) equals the "bad word" (in upper or lower case), then replace it with the filter. After going through the array, join all the dimensions back together with the space between.

it's not great, but it works
November 2, 2007, 5:39 AM
DDA-TriCk-E
Splitting it by space wouldn't work, what if someone said cockfag instead of just "cock" or "fag" nothing would happen...
November 2, 2007, 6:04 AM
Barabajagal
The best way to get cases correctly is to go through the entire string in a loop, look for Mid$(strMessage, I, 4) = "!&$%", check what case Mid$(strMessage, I - 1, 1) and Mid$(strMessage, I  + 5, 1) are (checking to make sure they're not spaces, and going one step further if they are, repeated), and set the case to that.

Also, if I recall, Chriso, I posted all these on Brutalnet and you added it to Mirage chat as well ;D
November 2, 2007, 6:31 AM
rabbit
Also note that if a message is ONLY a censored word, your function will assume it's uppercase.
November 2, 2007, 1:09 PM
Spht
[quote author=iNsaNe link=topic=17141.msg174448#msg174448 date=1193972136]
why don't u just set strMessage to upper or lower so you avoid case sensitivity all together?
[/quote]

It's not an issue of case sensitivity. He's trying to determine the caps of the censored word to begin with, which is not only impossible, but rather redundant to even guess
November 2, 2007, 3:38 PM
Barabajagal
Rabbit, the current function I wrote does NOT assume it's upper case. Try it.
November 2, 2007, 7:20 PM
Leaky
is it just me being blind... as far as i can tell that function will ALWAYS assume lowercase.... really it's completly pointless to do the caps o.O especially since it's not used.. anywhere (i might be blind iuno)
November 2, 2007, 11:43 PM
Barabajagal
It only capitalizes the censored words if the entire rest of the text in the variable is capitalized.
November 2, 2007, 11:57 PM
UserLoser
Thanks but not really.  Please contribute useful things
November 3, 2007, 9:35 AM
Barabajagal
Why? Nobody else does.
November 3, 2007, 9:41 AM
rabbit
You didn't even read what I said.  VB treats ~!@#$%^&*()_+ as uppercase characters, thus[quote author=rabbit link=topic=17141.msg174457#msg174457 date=1194008972]
if a message is ONLY a censored word, your function will assume it's uppercase.
[/quote]
November 3, 2007, 2:35 PM
Barabajagal
Try it yourself if you don't believe me.
November 3, 2007, 9:08 PM
iNsaNe
[quote author=Chriso.de link=topic=17141.msg174453#msg174453 date=1193983450]
Splitting it by space wouldn't work, what if someone said cockfag instead of just "cock" or "fag" nothing would happen...
[/quote]

cockfag wouldnt be censored by battle net
November 3, 2007, 9:56 PM
MyStiCaL
It's not cencsored but you can't make the account :D
November 3, 2007, 10:06 PM
Barabajagal
Uh... it'd be $!$%fag.
November 3, 2007, 10:08 PM
MyStiCaL
hmm...?

[IMG]http://i54.photobucket.com/albums/g116/siklife/cockfag.jpg[/img]
November 3, 2007, 10:37 PM
Leaky
[quote author=MyStiCaL link=topic=17141.msg174500#msg174500 date=1194129452]
hmm...?

[IMG]http://i54.photobucket.com/albums/g116/siklife/cockfag.jpg[/img]
[/quote]


hmmm bnet trivia

do private channels have censoring?
answer: no

also you don't see the censoring your self everyone else does
November 3, 2007, 10:44 PM
Barabajagal
Perfect for this forum, isn't it?
November 3, 2007, 11:31 PM
DDA-TriCk-E
Haha yeah, say it in a public channel and view it on another bot (or have a bot say it)... I can't remember if whispers are censored or not, someone want to test that out?
November 3, 2007, 11:33 PM
Barabajagal
Whispers are not censored. I know all about this stuff, since I've always been in public channels :P
November 3, 2007, 11:40 PM
DDA-TriCk-E
Ahh true, perhaps bad design by Battle.Net? Since you can still swear at others regardless of if you are in a public channel or not?
November 4, 2007, 12:46 AM
l2k-Shadow
[quote author=Chriso.de link=topic=17141.msg174507#msg174507 date=1194137199]
Ahh true, perhaps bad design by Battle.Net? Since you can still swear at others regardless of if you are in a public channel or not?
[/quote]

/ignore fixes that problem.
November 4, 2007, 12:56 AM
Barabajagal
or /o igwhis... Nobody uses the option features, though. And no, Chriso, it was intentional.
November 4, 2007, 1:28 AM
DDA-TriCk-E
Just seems odd that swearing is only blocked in public channels though, I mean children could stumble into a private channel and get e-molested (in #sex) or e-abused.
November 4, 2007, 3:39 AM
UserLoser
[quote author=Chriso.de link=topic=17141.msg174512#msg174512 date=1194147553]
Just seems odd that swearing is only blocked in public channels though, I mean children could stumble into a private channel and get e-molested (in #sex) or e-abused.
[/quote]

#sex isn't/wasn't ever a channel on battle.net
November 4, 2007, 6:38 AM
Kp
Censoring was not present in the original version of the software.  It was added after I had been on battle.net for several years.  I presume the decision to censor only public channels was driven by the fact that public channels are a landing zone and have no operator.  If someone is swearing in a private channel, the operator can remove that person.  If the operator refuses, the offended parties can move to a different private channel, and /whois will not allow you to follow them.  On the other hand, if you change public channels, the cursing entity can follow you easily.
November 4, 2007, 5:04 PM
l2k-Shadow
[quote author=UserLoser link=topic=17141.msg174514#msg174514 date=1194158331]
[quote author=Chriso.de link=topic=17141.msg174512#msg174512 date=1194147553]
Just seems odd that swearing is only blocked in public channels though, I mean children could stumble into a private channel and get e-molested (in #sex) or e-abused.
[/quote]

#sex isn't/wasn't ever a channel on battle.net
[/quote]

perhaps not but
[code]
/j #sex
[/code]
November 4, 2007, 5:09 PM
Leaky
[quote author=l2k-Shadow link=topic=17141.msg174524#msg174524 date=1194196153]
[quote author=UserLoser link=topic=17141.msg174514#msg174514 date=1194158331]
[quote author=Chriso.de link=topic=17141.msg174512#msg174512 date=1194147553]
Just seems odd that swearing is only blocked in public channels though, I mean children could stumble into a private channel and get e-molested (in #sex) or e-abused.
[/quote]

#sex isn't/wasn't ever a channel on battle.net
[/quote]

perhaps not but
[code]
/j #sex
[/code]
[/quote]

LuLz he didn't say it was an invalid channel he meant it's not an actively used channel
November 4, 2007, 7:49 PM
l2k-Shadow
[quote author=Leaky link=topic=17141.msg174529#msg174529 date=1194205771]
[quote author=l2k-Shadow link=topic=17141.msg174524#msg174524 date=1194196153]
[quote author=UserLoser link=topic=17141.msg174514#msg174514 date=1194158331]
[quote author=Chriso.de link=topic=17141.msg174512#msg174512 date=1194147553]
Just seems odd that swearing is only blocked in public channels though, I mean children could stumble into a private channel and get e-molested (in #sex) or e-abused.
[/quote]

#sex isn't/wasn't ever a channel on battle.net
[/quote]

perhaps not but
[code]
/j #sex
[/code]
[/quote]

LuLz he didn't say it was an invalid channel he meant it's not an actively used channel
[/quote]

you might want to double check that information. it's full almost all the time on east.
November 4, 2007, 7:51 PM
UserLoser
#sex isn't valid channel
November 4, 2007, 8:59 PM
Leaky
[quote author=l2k-Shadow link=topic=17141.msg174530#msg174530 date=1194205864]
[quote author=Leaky link=topic=17141.msg174529#msg174529 date=1194205771]
[quote author=l2k-Shadow link=topic=17141.msg174524#msg174524 date=1194196153]
[quote author=UserLoser link=topic=17141.msg174514#msg174514 date=1194158331]
[quote author=Chriso.de link=topic=17141.msg174512#msg174512 date=1194147553]
Just seems odd that swearing is only blocked in public channels though, I mean children could stumble into a private channel and get e-molested (in #sex) or e-abused.
[/quote]

#sex isn't/wasn't ever a channel on battle.net
[/quote]

perhaps not but
[code]
/j #sex
[/code]
[/quote]

LuLz he didn't say it was an invalid channel he meant it's not an actively used channel
[/quote]

you might want to double check that information. it's full almost all the time on east.
[/quote]
i did double check it see /\ userlosers' post # is filtered out of the channel name :P invalid channel name it is it is
November 4, 2007, 9:06 PM
l2k-Shadow
i was merely pointing out with my first post that /j #sex and /j sex are the same thing.
November 4, 2007, 9:10 PM
DDA-TriCk-E
Sorry habit from IRC, yeah I meant /j sex
November 5, 2007, 1:05 AM
Barabajagal
Sex on both west and east has always been popular, east often having 3 or more channels, with the first two often totally full. It's a bunch of idlers, with random quiet chat occasionally.
November 5, 2007, 4:14 AM
UserLoser
[quote author=l2k-Shadow link=topic=17141.msg174540#msg174540 date=1194210647]
i was merely pointing out with my first post that /j #sex and /j sex are the same thing.
[/quote]

Not on Battle.net
November 5, 2007, 8:18 AM
MyStiCaL
[quote author=UserLoser link=topic=17141.msg174565#msg174565 date=1194250699]
[quote author=l2k-Shadow link=topic=17141.msg174540#msg174540 date=1194210647]
i was merely pointing out with my first post that /j #sex and /j sex are the same thing.
[/quote]

Not on Battle.net
[/quote]

If you use "/join #sex" or "/join sex" on starcraft client they work the same.
November 5, 2007, 8:21 AM
Yegg
[quote author=Hands of a Government Man link=topic=17141.msg174558#msg174558 date=1194236062]
Sex on both west and east has always been popular, east often having 3 or more channels, with the first two often totally full. It's a bunch of idlers, with random quiet chat occasionally.
[/quote]

Last time I went in there (quite recently), it was packed with people actively chatting. So it's not always just idlers.
November 5, 2007, 3:45 PM
UserLoser
[quote author=MyStiCaL link=topic=17141.msg174566#msg174566 date=1194250871]
[quote author=UserLoser link=topic=17141.msg174565#msg174565 date=1194250699]
[quote author=l2k-Shadow link=topic=17141.msg174540#msg174540 date=1194210647]
i was merely pointing out with my first post that /j #sex and /j sex are the same thing.
[/quote]

Not on Battle.net
[/quote]

If you use "/join #sex" or "/join sex" on starcraft client they work the same.

[/quote]

Must be the client removing it, not Battle.net
November 5, 2007, 5:03 PM
BreW
[quote author=UserLoser link=topic=17141.msg174572#msg174572 date=1194282216]
[quote author=MyStiCaL link=topic=17141.msg174566#msg174566 date=1194250871]
[quote author=UserLoser link=topic=17141.msg174565#msg174565 date=1194250699]
[quote author=l2k-Shadow link=topic=17141.msg174540#msg174540 date=1194210647]
i was merely pointing out with my first post that /j #sex and /j sex are the same thing.
[/quote]

Not on Battle.net
[/quote]

If you use "/join #sex" or "/join sex" on starcraft client they work the same.

[/quote]

Must be the client removing it, not Battle.net
[/quote]

Battle.net filters out the # if it's the first character of the channel name. Go check yourself.
November 5, 2007, 8:52 PM
Barabajagal
[quote author=Yegg link=topic=17141.msg174571#msg174571 date=1194277543]
[quote author=Hands of a Government Man link=topic=17141.msg174558#msg174558 date=1194236062]
Sex on both west and east has always been popular, east often having 3 or more channels, with the first two often totally full. It's a bunch of idlers, with random quiet chat occasionally.
[/quote]

Last time I went in there (quite recently), it was packed with people actively chatting. So it's not always just idlers.
[/quote]Really? I haven't seen active chat in Sex on west or east in about 4 months. I don't check all that often, though.
November 5, 2007, 9:23 PM
MyStiCaL
[quote author=Hands of a Government Man link=topic=17141.msg174584#msg174584 date=1194297803]
[quote author=Yegg link=topic=17141.msg174571#msg174571 date=1194277543]
[quote author=Hands of a Government Man link=topic=17141.msg174558#msg174558 date=1194236062]
Sex on both west and east has always been popular, east often having 3 or more channels, with the first two often totally full. It's a bunch of idlers, with random quiet chat occasionally.
[/quote]

Last time I went in there (quite recently), it was packed with people actively chatting. So it's not always just idlers.
[/quote]Really? I haven't seen active chat in Sex on west or east in about 4 months. I don't check all that often, though.
[/quote]

I've never seen east channel sex dead since i've been on battle.net maybe when you get in the channel around 3-4 am its quite dead except Denial sittin in there callin every girl a man unless they send him pictures or call him LOL. other than that the channels ussally maxed out with a bunch of spam,
November 5, 2007, 9:26 PM
dlStevens
[quote author=MyStiCaL link=topic=17141.msg174587#msg174587 date=1194298012]
[quote author=Hands of a Government Man link=topic=17141.msg174584#msg174584 date=1194297803]
[quote author=Yegg link=topic=17141.msg174571#msg174571 date=1194277543]
[quote author=Hands of a Government Man link=topic=17141.msg174558#msg174558 date=1194236062]
Sex on both west and east has always been popular, east often having 3 or more channels, with the first two often totally full. It's a bunch of idlers, with random quiet chat occasionally.
[/quote]

Last time I went in there (quite recently), it was packed with people actively chatting. So it's not always just idlers.
[/quote]Really? I haven't seen active chat in Sex on west or east in about 4 months. I don't check all that often, though.
[/quote]

I've never seen east channel sex dead since i've been on battle.net maybe when you get in the channel around 3-4 am its quite dead except Denial sittin in there callin every girl a man unless they send him pictures or call him LOL. other than that the channels ussally maxed out with a bunch of spam,
[/quote]

lol
November 5, 2007, 9:56 PM
Barabajagal
[quote author=MyStiCaL link=topic=17141.msg174587#msg174587 date=1194298012]
[quote author=Hands of a Government Man link=topic=17141.msg174584#msg174584 date=1194297803]
[quote author=Yegg link=topic=17141.msg174571#msg174571 date=1194277543]
[quote author=Hands of a Government Man link=topic=17141.msg174558#msg174558 date=1194236062]
Sex on both west and east has always been popular, east often having 3 or more channels, with the first two often totally full. It's a bunch of idlers, with random quiet chat occasionally.
[/quote]

Last time I went in there (quite recently), it was packed with people actively chatting. So it's not always just idlers.
[/quote]Really? I haven't seen active chat in Sex on west or east in about 4 months. I don't check all that often, though.
[/quote]

I've never seen east channel sex dead since i've been on battle.net maybe when you get in the channel around 3-4 am its quite dead except Denial sittin in there callin every girl a man unless they send him pictures or call him LOL. other than that the channels ussally maxed out with a bunch of spam,
[/quote]

Ya, they're usually maxed out, but nobody's talking. Just bots and shit.
November 5, 2007, 10:18 PM
UserLoser
[quote author=Hands of a Government Man link=topic=17141.msg174594#msg174594 date=1194301091]
[quote author=MyStiCaL link=topic=17141.msg174587#msg174587 date=1194298012]
[quote author=Hands of a Government Man link=topic=17141.msg174584#msg174584 date=1194297803]
[quote author=Yegg link=topic=17141.msg174571#msg174571 date=1194277543]
[quote author=Hands of a Government Man link=topic=17141.msg174558#msg174558 date=1194236062]
Sex on both west and east has always been popular, east often having 3 or more channels, with the first two often totally full. It's a bunch of idlers, with random quiet chat occasionally.
[/quote]

Last time I went in there (quite recently), it was packed with people actively chatting. So it's not always just idlers.
[/quote]Really? I haven't seen active chat in Sex on west or east in about 4 months. I don't check all that often, though.
[/quote]

I've never seen east channel sex dead since i've been on battle.net maybe when you get in the channel around 3-4 am its quite dead except Denial sittin in there callin every girl a man unless they send him pictures or call him LOL. other than that the channels ussally maxed out with a bunch of spam,
[/quote]

Ya, they're usually maxed out, but nobody's talking. Just bots and shit.
[/quote]

Usually you'll see Denial in there

edit: Just realized someone already said that, oops.
November 6, 2007, 3:15 AM
moh.vze.com
It use to be "Ken" and "yoda" and chewbacca in there :(
November 14, 2007, 3:17 AM

Search