The following 25 pre-punk films, in my opinion, have "punk attitude," whatever that means (with respect and apologies to Don Letts). These are in no particular order, and of course there are many, many more. So if you don't get the connection, I suggest you make your own damn list.
1. Zero for Conduct (Jean Vigo, 1933)
2. Towers Open Fire (William S. Burroughs & Anthony Balch, 1963)
3. Breathless (Jean-Luc Godard, 1960)
4. Monkey Business (The Marx Brothers, directed by Norman Z. McLeod, 1931)
5. Gun Crazy (Joseph H. Lewis, 1950)
6. Un Chien Andalou (Luis Bunuel, 1929)
7. The Wild One (Laszlo Benedek, 1953)
8. Accattone (Pier Paolo Pasolini, 1961)
9. Johnny Cool (William Asher, 1963)
10. Freaks (Tod Browning, 1932)
11. Beware of a Holy Whore (Rainer Werner Fassbinder, 1970)
12. Tokyo Drifter (Seijun Suzuki, 1966)
13. Rebel Without a Cause (Nicholas Ray, 1955)
14. Chant d'Amour (Jean Genet, 1950)
15. Beat Girl (a.k.a. Wild for Kicks) (Edmond T. Greville, 1960)
16. Le Samourai (Jean-Pierre Melville, 1967)
17. Saturday NIght and Sunday Morning (Karel Reisz, 1960)
18. Point Blank (John Boorman, 1967)
19. Scarface (Howard Hawks & Richard Rosson, 1932)
20. Danger: Diabolik (Mario Bava, 1968)
21. Pickup on South Street (Samuel Fuller, 1953)
22. The Tenth Victim (Elio Petri, 1965)
23. Performance (Donald Cammell & Nicholas Roeg, 1970)
24. A Clockwork Orange (Stanley Kubrick, 1971)
25. Faster, Pussycat! Kill! Kill! (Russ Meyer, 1965)