You are referring to the lumpenproletariat. Marx ultimately considered them to be an obstacle in terms of revolutionary capacity. However, Marxists have claimed otherwise. The Black Panthers considered the lumpenproletariat to be a historically progressive class as automation would inevitably lead to more workers becoming "lumpen" and thus this would drive up the revolutionary capacity of the class as the quantitative measurement increased.
"The people have proved that they can run it... They (the pigs) can call it what they want to, they can talk about it. They can call it communism, and think that that's gonna scare somebody, but it ain't gonna scare nobody" ― Fred Hampton
“Mao Zedong said that power grows from the barrel of a gun. He never said that power was a gun. This is why I don't need no gun to do my thing. What I need is some freedom and the power to determine my destiny” ― Huey P. Newton